1
0
Fork 0

Connect all containers to internal network

This commit is contained in:
Lukáš Kucharczyk 2022-06-20 12:50:15 +02:00
parent 8259603016
commit a4e5dc112a
No known key found for this signature in database
1 changed files with 8 additions and 0 deletions

View File

@ -28,6 +28,8 @@ services:
interval: 30s interval: 30s
retries: 5 retries: 5
timeout: 3s timeout: 3s
networks:
- internal
server: server:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.6.2} image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.6.2}
restart: unless-stopped restart: unless-stopped
@ -50,6 +52,7 @@ services:
- "0.0.0.0:${AUTHENTIK_PORT_HTTP:-9000}:9000" - "0.0.0.0:${AUTHENTIK_PORT_HTTP:-9000}:9000"
- "0.0.0.0:${AUTHENTIK_PORT_HTTPS:-9443}:9443" - "0.0.0.0:${AUTHENTIK_PORT_HTTPS:-9443}:9443"
networks: networks:
- internal
- postgres - postgres
worker: worker:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.6.2} image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2022.6.2}
@ -75,6 +78,7 @@ services:
env_file: env_file:
- .env - .env
networks: networks:
- internal
- postgres - postgres
geoipupdate: geoipupdate:
image: "maxmindinc/geoipupdate:latest" image: "maxmindinc/geoipupdate:latest"
@ -85,6 +89,8 @@ services:
GEOIPUPDATE_FREQUENCY: "8" GEOIPUPDATE_FREQUENCY: "8"
env_file: env_file:
- .env - .env
networks:
- internal
volumes: volumes:
database: database:
@ -93,5 +99,7 @@ volumes:
driver: local driver: local
networks: networks:
internal:
external: true
postgres: postgres:
external: true external: true