-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (36 loc) · 934 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
40
version: "3"
services:
php-apache:
container_name: "apache-${PROJECT_NAME}"
restart: unless-stopped
build: ./docker/php-apache
tty: true
volumes:
- ${PATH_TO_SYMFONY_PROJECT}:/var/www/html
ports:
- "80:80"
db:
container_name: "mariadb-${PROJECT_NAME}"
restart: unless-stopped
image: mariadb:10.11.5
environment:
- MARIADB_ROOT_USER=${ROOT_USER}
- MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=yes
- MARIADB_USER=${DB_USER}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_DATABASE=${DB_NAME}
volumes:
- ${PATH_TO_DB_DATA}:/var/lib/mysql:rw
ports:
- "3306:3306"
node:
container_name: "nodejs-${PROJECT_NAME}"
restart: unless-stopped
build: ./docker/node
tty: true
volumes:
- ${PATH_TO_SYMFONY_PROJECT}:/var/www/html
volumes:
###> doctrine/doctrine-bundle ###
database_data:
###< doctrine/doctrine-bundle ###