-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
39 lines (35 loc) · 1018 Bytes
/
docker-compose.yaml
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
version: '3'
services:
mercure:
image: dunglas/mercure
ports: ['3000:80']
environment:
- ALLOW_ANONYMOUS=1
- DEMO=1
- CORS_ALLOWED_ORIGINS=*
- JWT_KEY=!UnsecureChangeMe!
mysql:
image: 'mysql:5.7'
environment:
- MYSQL_DATABASE=mercure_workshop
- MYSQL_USER=mercure_workshop
- MYSQL_PASSWORD=mercure_workshop
- MYSQL_ROOT_PASSWORD=mercure_workshop
php:
build: ./docker/php/
working_dir: /usr/share/nginx/html
links:
- mysql
- mercure
volumes:
- './:/usr/share/nginx/html'
- ~/.composer/cache:/root/.composer/cache
nginx:
image: 'okty/nginx:1.14'
working_dir: /usr/share/nginx/html
ports: ['8080:80']
links: [php]
volumes: ['./:/usr/share/nginx/html']
environment:
- PHP_CONTAINER_ID=php
- INDEX_SUBFOLDER=public