added container networks
This commit is contained in:
parent
75d000e6b5
commit
231737a31d
@ -27,6 +27,9 @@ services:
|
|||||||
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER}
|
- traefik.http.routers.https-${TRAEFIK_ROUTER}.tls.certresolver=${TRAEFIK_CERTRESOLVER}
|
||||||
# specify a service so a custom port can be used
|
# specify a service so a custom port can be used
|
||||||
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
|
- traefik.http.services.${TRAEFIK_SERVICE}.loadbalancer.server.port=${TRAEFIK_SERVICE_PORT}
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
|
- traefik
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/nextcloud:/var/www/html
|
- ./data/nextcloud:/var/www/html
|
||||||
|
|
||||||
@ -38,10 +41,13 @@ services:
|
|||||||
- MYSQL_DATABASE=${NC_DATABASE_NAME}
|
- MYSQL_DATABASE=${NC_DATABASE_NAME}
|
||||||
- MYSQL_USER=${NC_DATABASE_USER}
|
- MYSQL_USER=${NC_DATABASE_USER}
|
||||||
- MYSQL_PASSWORD=${NC_DATABASE_PASS}
|
- MYSQL_PASSWORD=${NC_DATABASE_PASS}
|
||||||
|
networks:
|
||||||
|
- internal
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/mysql:/var/lib/mysql
|
- ./data/mysql:/var/lib/mysql
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
internal:
|
||||||
traefik:
|
traefik:
|
||||||
external: true
|
external: true
|
||||||
name: ${TRAEFIK_NETWORK}
|
name: ${TRAEFIK_NETWORK}
|
||||||
|
Loading…
Reference in New Issue
Block a user