-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
95 lines (95 loc) · 1.93 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
version: "3.2"
services:
php:
build: './docker/php/'
depends_on:
- mailcatcher
- mysql
networks:
- backend
volumes:
- .:/var/www/html/
environment:
# To more nearly simulate Production, comment all but `DOCKER` out and rely on `.env`
DBHOST: 'mysql:${DBPORT:-3306}'
DBNAME: ${DBNAME}
DBPASS: ${DBPASS}
DBUSER: ${DBUSER}
DBPORT: ${DBPORT:-3306}
TEST_DBNAME: ${TEST_DBNAME}
DB_BACKEND: ${DB_BACKEND}
API_SERVER: "http://apache"
DOCKER: 1
composer:
restart: 'no'
image: "composer"
command: install
volumes:
- .:/app
apache:
build: './docker/apache/'
depends_on:
- php
- mysql
- mailcatcher
networks:
- frontend
- backend
ports:
- "8080:80"
volumes:
- .:/var/www/html/
mysql:
image: mysql:5.6.40
networks:
- backend
environment:
MYSQL_ROOT_PASSWORD: ${DBROOTPW}
MYSQL_DATABASE: ${DBNAME}
MYSQL_PASSWORD: ${DBPASS}
MYSQL_USER: ${DBUSER}
MYSQL_TCP_PORT: ${DBPORT:-3306}
ports:
- "${DBPORT:-3306}:${DBPORT:-3306}"
expose:
- ${DBPORT:-3306}
volumes:
- mysql:/var/lib/mysql
mailcatcher:
image: schickling/mailcatcher
networks:
- frontend
- backend
ports:
- "1025:1025"
- "1080:1080"
swagger:
image: swaggerapi/swagger-ui
networks:
- frontend
ports:
- "2080:8080"
environment:
URL: 'http://localhost:8080/ciab.openapi.yaml'
BASE_URL: '/swagger'
phpmyadmin:
image: phpmyadmin/phpmyadmin
depends_on:
- mysql
links:
- mysql:db
ports:
- 8000:80
networks:
- frontend
- backend
environment:
PMA_HOST: db
PMA_USER: ${DBUSER}
PMA_PASSWORD: ${DBPASS}
PMA_PORT: ${DBPORT:-3306}
networks:
frontend:
backend:
volumes:
mysql: