forked from coopcycle/coopcycle-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·118 lines (105 loc) · 2.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
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
version: '3'
services:
postgres:
restart: always
image: mdillon/postgis:9.4-alpine
environment:
POSTGRES_DB: coopcycle
ports:
- '5432:5432'
volumes:
- 'pg_data:/var/lib/postgresql/data'
redis:
restart: always
image: redis: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: '.'
depends_on:
- postgres
- redis
- osrm
- graphite
- stripe_mock
links:
- osrm
- graphite
- stripe_mock
environment:
SYMFONY_ENV: 'dev'
volumes:
- 'php_cache:/srv/coopcycle/var/cache'
- './:/srv/coopcycle: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:/srv/coopcycle/web:ro'
smtp:
image: namshi/smtp
ports:
- 25:25
graphite:
restart: always
image: graphiteapp/graphite-statsd:latest
ports:
- '7000:80'
- '2003-2004:2003-2004'
- '2023-2024:2023-2024'
- '8125:8125/udp'
- '8126:8126'
grafana:
image: grafana/grafana:latest
ports:
- '3000:3000'
depends_on:
- graphite
links:
- graphite
stripe_mock:
image: stripemock/stripe-mock:latest
ports:
- '12111:12111'
volumes:
node_modules:
pg_data:
php_cache: