forked from coopcycle/coopcycle-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
executable file
·156 lines (141 loc) · 3.65 KB
/
docker-compose.dev.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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: '3'
services:
postgres:
image: mdillon/postgis:9.4-alpine
environment:
- POSTGRES_DB=${COOPCYCLE_DB_NAME}
ports:
- '5432:5432'
volumes:
- 'pg_data:/var/lib/postgresql/data'
redis:
image: redis:5-alpine
ports:
- '6379:6379'
nodejs:
build:
dockerfile: './docker/nodejs/Dockerfile'
context: '.'
depends_on:
- postgres
- redis
ports:
- '8000:8000'
- '8001:8001'
- '8002:8002'
volumes:
- 'node_modules:/srv/coopcycle/node_modules'
- './:/srv/coopcycle:cached'
webpack:
build:
dockerfile: './docker/webpack/Dockerfile'
context: '.'
ports:
- '8080:8080'
volumes:
- 'node_modules:/srv/coopcycle/node_modules'
- './:/srv/coopcycle:cached'
osrm:
build: './docker/osrm'
ports:
- '5000:5000'
volumes:
- './var/osrm:/data'
environment:
- OSRM_FILENAME=data.osrm
php:
build:
dockerfile: './docker/php/Dockerfile'
context: '.'
image: coopcycle/php
depends_on:
- postgres
- redis
- osrm
links:
- osrm
environment:
- 'BEHAT_PARAMS={"extensions":{"Behat\\MinkExtension":{"base_url": "http://nginx_test:80"}}}'
- GOOGLE_API_KEY
- STRIPE_PUBLISHABLE_KEY
- STRIPE_SECRET_KEY
volumes:
- 'php_cache:/var/www/html/var/cache'
- './:/var/www/html:cached'
cap_add:
- SYS_ADMIN
php_worker:
build:
dockerfile: './docker/php_worker/Dockerfile'
context: '.'
depends_on:
- php
environment:
- GOOGLE_API_KEY
- STRIPE_PUBLISHABLE_KEY
- STRIPE_SECRET_KEY
volumes:
- 'php_cache:/var/www/html/var/cache'
- './:/var/www/html:cached'
nginx:
image: 'nginx:1.11-alpine'
depends_on:
- php
- nodejs
ports:
- '80:80'
volumes:
- './docker/nginx/conf.d:/etc/nginx/conf.d:ro'
- './web:/var/www/html/web:ro'
- './vendor:/var/www/html/vendor:ro'
minio:
image: minio/minio
command: server /data
ports:
- "9000:9000"
volumes:
- minio_data:/data
environment:
- MINIO_ACCESS_KEY=${S3_CREDENTIALS_KEY}
- MINIO_SECRET_KEY=${S3_CREDENTIALS_SECRET}
- MINIO_REGION=${S3_REGION}
# https://github.com/minio/minio/issues/4882
# https://docs.min.io/docs/minio-client-complete-guide#policy
minio_client:
image: minio/mc
depends_on:
- minio
environment:
- S3_CREDENTIALS_KEY
- S3_CREDENTIALS_SECRET
- S3_REGION
entrypoint: >
/bin/sh -c "
/usr/bin/mc config host add coopcycle http://minio:9000 $S3_CREDENTIALS_KEY $S3_CREDENTIALS_SECRET;
/usr/bin/mc mb --region $S3_REGION --ignore-existing coopcycle/images;
/usr/bin/mc mb --region $S3_REGION --ignore-existing coopcycle/images/assets;
/usr/bin/mc mb --region $S3_REGION --ignore-existing coopcycle/images/products;
/usr/bin/mc mb --region $S3_REGION --ignore-existing coopcycle/images/receipts;
/usr/bin/mc mb --region $S3_REGION --ignore-existing coopcycle/images/restaurants;
/usr/bin/mc mb --region $S3_REGION --ignore-existing coopcycle/images/stores;
/usr/bin/mc mb --region $S3_REGION --ignore-existing coopcycle/images/tasks;
/usr/bin/mc policy set public coopcycle/images;
"
tile38:
image: tile38/tile38
mjml:
image: adrianrudnik/mjml-server
ports:
- 8889:80
pgadmin:
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_PASSWORD=changeMe
ports:
- 5050:80
volumes:
node_modules:
pg_data:
php_cache:
minio_data: