Ibra
07/25/2023, 12:54 PMKathy Satterlee
07/25/2023, 3:22 PMIbra
07/25/2023, 3:25 PMKathy Satterlee
07/25/2023, 3:37 PMIbra
07/25/2023, 3:51 PMIbra
08/01/2023, 4:30 PMfleetdm:
restart: always
container_name: Fleet
image: fleetdm/fleet:v4.34.1
volumes:
- /data/docker/appdata/fleet:/fleet
command: sh -c "echo '\n' | /usr/bin/fleet prepare db && /usr/bin/fleet serve"
environment:
FLEET_MYSQL_ADDRESS: 172.21.0.4:3306
FLEET_MYSQL_DATABASE: fleet
FLEET_MYSQL_USERNAME: app
FLEET_MYSQL_PASSWORD: ***
FLEET_REDIS_ADDRESS: redis:6379
FLEET_SERVER_CERT: /fleet/itl-cslapp-54t.local.crt
FLEET_SERVER_KEY: /fleet/itl-cslapp-54t.local.key
FLEET_LOGGING_JSON: "true"
FLEET_AUTH_JWT_KEY:
ports:
- "443:8080"
networks:
- Proxy
But now adding fleet on the new server I have to keep it in the following situation:
pfsense => traefik proxy => Fleet
so the tls is handled by the pfsense, is it possible to change the docker-compose configuration to have fleet talk in the clear instead of on port 8080 tls, without having to redistribute the agents that were created with the certificate that was inserted in the docker compose?
or other solution?
to get the fleet container to communicate to the proxy, I had to add the following lines to docker composem and comment out the port exposure:
labels:
- "traefik.enable=true"
- "traefik.http.routers.fleetdm.rule=Host(<http://it-asset.company.it|it-asset.company.it>)"
- "traefik.http.routers.fleetdm.entrypoints=web"
- "traefik.http.services.fleetdm.loadbalancer.server.port=8080"