adds DNS so the containers can resolve public domain even when resolv.conf was created when a VPN with custom DNS server was active on host
This commit is contained in:
@@ -6,6 +6,8 @@ networks:
|
|||||||
services:
|
services:
|
||||||
adminer:
|
adminer:
|
||||||
container_name: ${PREFIX}-adminer
|
container_name: ${PREFIX}-adminer
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
hostname: ${PREFIX}-adminer
|
hostname: ${PREFIX}-adminer
|
||||||
image: adminer:4.8.1-standalone
|
image: adminer:4.8.1-standalone
|
||||||
labels:
|
labels:
|
||||||
@@ -16,6 +18,8 @@ services:
|
|||||||
- traefik.http.services.${PREFIX}-adminer.loadbalancer.server.port=8080
|
- traefik.http.services.${PREFIX}-adminer.loadbalancer.server.port=8080
|
||||||
app:
|
app:
|
||||||
container_name: ${PREFIX}-app
|
container_name: ${PREFIX}-app
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
environment:
|
environment:
|
||||||
- PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE}
|
- PHP_POST_MAX_SIZE=${PHP_POST_MAX_SIZE}
|
||||||
- PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE}
|
- PHP_UPLOAD_MAX_FILESIZE=${PHP_UPLOAD_MAX_FILESIZE}
|
||||||
@@ -51,6 +55,8 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
container_name: ${PREFIX}-traefik
|
container_name: ${PREFIX}-traefik
|
||||||
command: ["--configFile=/etc/traefik/static/traefik.yml"]
|
command: ["--configFile=/etc/traefik/static/traefik.yml"]
|
||||||
|
dns:
|
||||||
|
- 1.1.1.1
|
||||||
image: traefik:2.5.3
|
image: traefik:2.5.3
|
||||||
labels:
|
labels:
|
||||||
- traefik.enable=true
|
- traefik.enable=true
|
||||||
|
|||||||
Reference in New Issue
Block a user