fix volume exemples
This commit is contained in:
parent
14e3db80b5
commit
673773b6bf
2 changed files with 8 additions and 6 deletions
|
@ -6,7 +6,7 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
command: --transaction-isolation=READ-COMMITTED --log-bin=binlog --binlog-format=ROW
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable/db:/var/lib/mysql
|
- dcstable_db:/var/lib/mysql
|
||||||
environment:
|
environment:
|
||||||
MYSQL_ROOT_PASSWORD: dotclear_root
|
MYSQL_ROOT_PASSWORD: dotclear_root
|
||||||
MYSQL_DATABASE: dotclear_db
|
MYSQL_DATABASE: dotclear_db
|
||||||
|
@ -24,7 +24,7 @@ services:
|
||||||
container_name: dcstableapp
|
container_name: dcstableapp
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable/app:/var/www/dotclear
|
- dcstable_app:/var/www/dotclear
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
depends_on:
|
depends_on:
|
||||||
|
@ -40,4 +40,5 @@ services:
|
||||||
DC_ADMINMAILFROM: contact@exemple.com
|
DC_ADMINMAILFROM: contact@exemple.com
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
dcstable:
|
dcstable_db:
|
||||||
|
dcstable_app:
|
|
@ -10,7 +10,7 @@ services:
|
||||||
POSTGRES_DB: dcstable_db
|
POSTGRES_DB: dcstable_db
|
||||||
PGDATA: /var/lib/postgresql/data/pgdata
|
PGDATA: /var/lib/postgresql/data/pgdata
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable:/var/lib/postgresql/data
|
- dcstable_db:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
|
test: [ "CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}" ]
|
||||||
interval: 1s
|
interval: 1s
|
||||||
|
@ -24,7 +24,7 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- dcstable/app:/var/www/dotclear
|
- dcstable_app:/var/www/dotclear
|
||||||
depends_on:
|
depends_on:
|
||||||
dcstabledb:
|
dcstabledb:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
@ -38,4 +38,5 @@ services:
|
||||||
DC_ADMINMAILFROM: contact@exemple.com
|
DC_ADMINMAILFROM: contact@exemple.com
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
dcstable:
|
dcstable_db:
|
||||||
|
dcstable_app:
|
Loading…
Reference in a new issue