-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
40 lines (40 loc) · 940 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:
nginx:
container_name: "rubel_nginx"
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./src:/var/www/html:cached
php:
container_name: "rubel_php"
build: ./docker/php
volumes:
- ./src:/var/www/html:delegated
mysql:
container_name: "rubel_mysql"
build: ./docker/mysql
ports:
- "3306:3306"
volumes:
- rubel_mysql_db:/var/lib/mysql:delegated
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=rubel
mysql_test:
container_name: "rubel_mysql_test"
build: ./docker/mysql
ports:
- "3305:3306"
volumes:
- rubel_mysql_test_db:/var/lib/mysql:delegated
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_DATABASE=rubel_test
volumes:
rubel_mysql_db:
driver: local
rubel_mysql_test_db:
driver: local