forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-testdb.yml
82 lines (77 loc) · 1.57 KB
/
docker-compose-testdb.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
version: "3.2"
services:
php:
restart: unless-stopped
tty: true
build:
context: ./docker/php
environment:
- DB_DRIVER=mysql
- DB_HOST=ufmysql
- DB_PORT=3306
- DB_NAME=userfrosting
- DB_USER=docker
- DB_PASSWORD=secret
- DB_TEST_DRIVER=mysql
- DB_TEST_HOST=mysqltest
- DB_TEST_PORT=3306
- DB_TEST_NAME=userfrosting_test
- DB_TEST_USER=docker
- DB_TEST_PASSWORD=secret
- TEST_DB=test_ufdb
volumes:
- .:/app
- ./docker/php/custom.ini:/usr/local/etc/php/conf.d/custom.ini
networks:
- backend
nginx:
restart: unless-stopped
tty: true
ports:
- "8591:80"
- "8592:443"
build:
context: ./docker/nginx
volumes:
- .:/app
depends_on:
- php
- ufmysql
- ufmysqltest
networks:
- frontend
- backend
ufmysql:
image: mysql:5.7
networks:
- backend
environment:
- MYSQL_DATABASE=userfrosting
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_USER=docker
- MYSQL_PASSWORD=secret
ports:
- 8593:3306
volumes:
- userfrosting-db:/var/lib/mysql
ufmysqltest:
image: mysql:5.7
networks:
- backend
environment:
- MYSQL_DATABASE=userfrosting_test
- MYSQL_ROOT_PASSWORD=secret
- MYSQL_USER=docker
- MYSQL_PASSWORD=secret
ports:
- 8594:3306
volumes:
- userfrosting-test-db:/var/lib/mysql
volumes:
userfrosting-db:
driver: local
userfrosting-test-db:
driver: local
networks:
frontend:
backend: