-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
52 lines (45 loc) · 1.09 KB
/
docker-compose.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
version: '3.7'
services:
mysql:
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: root #${MYSQL_ROOT_PASSWORD}
image: mysql:5.7
restart: always
volumes:
- db_data:/var/lib/mysql
nginx:
container_name: nginx
image: nginx
links:
- php
ports:
- 8000:80 #${NGINX_PORT}:80
restart: always
volumes:
- .:/var/www/Symfony-Snowtricks:cached #${SYMFONY_ROOT_DIR}:cached
- ./docker/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf
working_dir: /var/www/Symfony-Snowtricks #${SYMFONY_ROOT_DIR}
php:
build: docker/php
container_name: php
depends_on:
- mysql
ports:
- 9000:9000 #${PHP_PORT}:9000
restart: always
volumes:
- .:/var/www/Symfony-Snowtricks:cached #${SYMFONY_ROOT_DIR}:cached
working_dir: /var/www/Symfony-Snowtricks #${SYMFONY_ROOT_DIR}
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
links:
- mysql:mysql
ports:
- "8080:80"
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: root
volumes:
db_data: