-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
46 lines (43 loc) · 1.05 KB
/
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
41
42
43
44
45
46
# v2 syntax
version: '2'
volumes:
scheduler-mysql-data:
driver: local
scheduler-test-mysql-data:
driver: local
services:
mysql:
image: ambientum/mysql:5.7
container_name: scheduler-mysql
volumes:
- scheduler-mysql-data:/var/lib/mysql
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=schedulerapp
- MYSQL_DATABASE=schedulerapp
- MYSQL_USER=schedulerapp
- MYSQL_PASSWORD=schedulerapp
mysql_test:
image: ambientum/mysql:5.7
container_name: ambientum-mysql
volumes:
- scheduler-test-mysql-data:/var/lib/mysql
ports:
- "3307:3306"
environment:
- MYSQL_ROOT_PASSWORD=schedulerapp-test
- MYSQL_DATABASE=schedulerapp-test
- MYSQL_USER=schedulerapp-test
- MYSQL_PASSWORD=schedulerapp-test
# PHP (with Caddy)
app:
image: ambientum/php:7.0-nginx
container_name: scheduler-app
volumes:
- .:/var/www/app
ports:
- "8000:8080"
links:
- mysql
- mysql_test