-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (75 loc) · 1.52 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
version: '3.7'
services:
db:
image: mysql:5.7
restart: always
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=inReusableCodeWeTrust
- MYSQL_DATABASE=symfony
- MYSQL_USER=simplon
- MYSQL_PASSWORD=inCodeWeTrust
- TERM=dumb
volumes:
- ./db/mysql:/var/lib/mysql
api:
build: ./docker/php
tty: true
volumes:
- ./api:/application
- /dev/log:/dev/log
links:
- db
- mercure
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- "85:80"
links:
- db
webserver:
image: nginx
working_dir: /application
volumes:
- ./api:/application
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
ports:
- "8080:80"
depends_on:
- api
- mercure
- phpmyadmin
composer:
build: docker/composer
working_dir: /application
volumes:
- ./api:/application
angular:
build: docker/node
volumes:
- ./front/:/src
command: "ng serve --host 0.0.0.0 --port 4200"
tty: true
ports:
- "4200:4200"
mercure:
image: dunglas/mercure
environment:
- JWT_KEY=aVerySecretKey
- DEMO=0
- ALLOW_ANONYMOUS=1
- PUBLISH_ALLOWED_ORIGINS=*
- CORS_ALLOWED_ORIGINS=http://localhost:4200 # space between origins
- DEBUG=1
ports:
- "3000:80"
redis:
image: "redis:alpine"
ports:
- "6379:80"
redisGui:
image: patrikx3/p3x-redis-ui:latest
ports:
- "7843:80"