Skip to content
This repository was archived by the owner on Jan 12, 2022. It is now read-only.

Commit 763c23c

Browse files
committed
compose adjustments
1 parent b1c7d48 commit 763c23c

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

docker-compose.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
version: '3.6'
44

5-
x-linux-logging:
5+
x-logging:
66
&common-logging
77
driver: "${LOG_DRIVER}"
8-
options:
9-
tag: "{{.ImageName}}/{{.Name}}/{{.ID}}"
8+
9+
x-secopts:
10+
&sec-opts
11+
security_opt:
12+
- label:disable
13+
1014

1115
services:
1216
nginx-php-moodle:
@@ -15,6 +19,7 @@ services:
1519
mail:
1620
image: ${DOCKER_REGISTRY_URL}/nginx-php-moodle:latest
1721
logging: *common-logging
22+
<<: *sec-opts
1823
depends_on:
1924
- postfix
2025
- postgres
@@ -68,11 +73,13 @@ services:
6873
POSTFIX_SASL_AUTH:
6974
POSTFIX_TLS:
7075
logging: *common-logging
76+
<<: *sec-opts
7177
postgres:
7278
networks:
7379
db:
7480
image: ${DOCKER_REGISTRY_URL}/postgres:9.6
7581
logging: *common-logging
82+
<<: *sec-opts
7683
environment:
7784
POSTGRES_DB: "${PGSQL_DATABASE}"
7885
POSTGRES_USER: "${PGSQL_USER}"
@@ -92,16 +99,19 @@ services:
9299
POSTGRES_USER: "${PGSQL_USER}"
93100
POSTGRES_DB: "${PGSQL_DATABASE}"
94101
DUMPPREFIX: "backup"
95-
POSTGRES_HOST: "db"
102+
POSTGRES_HOST: "postgres"
96103
POSTGRES_PORT: "5432"
97104
logging: *common-logging
105+
<<: *sec-opts
106+
command: /bin/true
98107
networks:
99108
db:
100109
certbot:
101110
networks:
102111
certbot:
103112
image: ${DOCKER_REGISTRY_URL}/sc-certbot:latest
104113
logging: *common-logging
114+
<<: *sec-opts
105115
depends_on:
106116
- nginx-php-moodle
107117
environment:

0 commit comments

Comments
 (0)