forked from restarteco/symfony-exam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (39 loc) · 910 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: "3.7"
services:
app_exam:
build:
context: .
dockerfile: ./docker/Dockerfile
volumes:
- ./:/var/www/project/:cached # Location of the project for php-fpm. Note this should be the same for NGINX.*
networks:
- symfony
depends_on:
- exam_db
ports:
- target: 80
published: 8080
exam_db:
image: mariadb
ports:
- target: 3306
published: 3307
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql:delegated
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: symfony_exam
MYSQL_USER: symfony_exam
MYSQL_PASSWORD: password
# Copy-pasted from https://github.com/docker-library/mariadb/issues/94
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "--silent" ]
networks:
- symfony
networks:
symfony:
volumes:
persistent:
mysql_data:
driver: local