forked from coopcycle/coopcycle-web
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·81 lines (72 loc) · 1.44 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
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
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
links:
- osrm
environment:
SYMFONY_ENV: 'dev'
volumes:
- './:/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'
volumes:
node_modules:
pg_data: