update docker-compose
This commit is contained in:
parent
cbf62d1c4a
commit
0d1e4a3d1c
@ -2,12 +2,17 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
app:
|
app:
|
||||||
build:
|
build:
|
||||||
context: ./docker
|
context: .
|
||||||
dockerfile: Dockerfile-app
|
dockerfile: docker/Dockerfile
|
||||||
|
target: rvr_dev
|
||||||
|
depends_on:
|
||||||
|
mariadb:
|
||||||
|
condition: service_healthy
|
||||||
ports:
|
ports:
|
||||||
- 80:80
|
- 80:80
|
||||||
volumes:
|
volumes:
|
||||||
- .:/var/www/rvr
|
- .:/var/www/rvr
|
||||||
|
working_dir: /var/www/rvr
|
||||||
mariadb:
|
mariadb:
|
||||||
image: mariadb:10.3
|
image: mariadb:10.3
|
||||||
ports:
|
ports:
|
||||||
@ -19,6 +24,13 @@ services:
|
|||||||
MYSQL_DATABASE: 'rvr'
|
MYSQL_DATABASE: 'rvr'
|
||||||
MYSQL_USER: 'rvr'
|
MYSQL_USER: 'rvr'
|
||||||
MYSQL_PASSWORD: 'rvr'
|
MYSQL_PASSWORD: 'rvr'
|
||||||
|
healthcheck:
|
||||||
|
test: ["CMD-SHELL", "mysqladmin -u $$MYSQL_USER -p$$MYSQL_PASSWORD ping -h localhost || exit 1"]
|
||||||
|
start_period: 5s
|
||||||
|
start_interval: 1s
|
||||||
|
interval: 5s
|
||||||
|
timeout: 5s
|
||||||
|
retries: 5
|
||||||
adminer:
|
adminer:
|
||||||
image: adminer:4.8.1-standalone
|
image: adminer:4.8.1-standalone
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
Reference in New Issue
Block a user