forked from uu-plathome/uu-circles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 loc) · 1.08 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
version: "3.8"
volumes:
php-fpm-socket:
pma-session-store:
db-store:
db-store-test:
vendor-store:
node_modules-store:
services:
app:
build: ./infra/docker/php
volumes:
- php-fpm-socket:/var/run/php-fpm
- ./api:/work/api
- ./api/vendor:/work/api/vendor
depends_on:
- db
- dbtest
web:
build: ./infra/docker/nginx
ports:
- 8000:80
volumes:
- php-fpm-socket:/var/run/php-fpm
- ./api:/work/api
- node_modules-store:/work/api/node_modules
db:
build: ./infra/docker/mysql
ports:
- 3306:3306
volumes:
- ./infra/docker/mysql/db:/var/lib/mysql
dbtest:
build: ./infra/docker/mysql
ports:
- 3307:3306
volumes:
- ./infra/docker/mysql/db-test:/var/lib/mysql
cs:
image: herloct/php-cs-fixer
volumes:
- ./api:/project
pma:
image: phpmyadmin/phpmyadmin:5.0.2
environment:
- PMA_HOST=db
- PMA_USER=root
- PMA_PASSWORD=secret
ports:
- 8080:80
volumes:
- pma-session-store:/sessions
depends_on:
- db