-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (62 loc) · 1.3 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
version: '2'
volumes:
db-data: null
app-env: null
services:
pwa:
container_name: pwa-nginx
image: 'nginx:stable-alpine'
depends_on:
- mage
volumes:
- './pwa:/usr/share/nginx/html'
- './pwa/nginx/sites:/etc/nginx/conf.d'
mage:
container_name: mage-nginx
image: 'nginx:stable-alpine'
volumes_from:
- php
working_dir: /var/www
depends_on:
- php
volumes:
- '.docker/mage:/etc/nginx/conf.d'
entry:
container_name: entry-nginx
image: 'nginx:stable-alpine'
volumes:
- '.docker/entry/sites:/etc/nginx/conf.d'
- '.docker/certs/live:/etc/letsencrypt/live'
depends_on:
- pwa
- mage
ports:
- '80:80'
- '443:443'
php:
container_name: dev-playground-php
environment:
- HTTPS=on
- MYSQL_DATABASE=docker
- MYSQL_PASSWORD=docker
- MYSQL_ROOT_PASSWORD=docker
- MYSQL_USER=docker
- PHP_MEMORY_LIMIT=3G
image: 'shakyshane/m2pwa-php:2.0'
depends_on:
- db
ports:
- 9000
db:
container_name: dev-playground-db
image: 'mysql:5.6'
volumes:
- 'db-data:/var/lib/mysql'
ports:
- '3306'
restart: unless-stopped
redis:
container_name: dev-playground-redis
image: 'redis:3-alpine'
ports:
- '6379'