-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (58 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
62 lines (58 loc) · 1.16 KB
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
services:
server:
build:
context: .
ports:
- '3000:3000'
command: './bin/server'
entrypoint: './entrypoint-server.sh'
volumes:
- .:/server
environment:
PG_HOST: postgres
PG_PORT: 5432
REDIS_URL: 'redis://redis:6379/1'
WEBPACKER_DEV_SERVER_HOST: webpack
depends_on:
- webpack
- redis
- postgres
webpack:
build:
context: .
command: ./bin/webpack-dev-server
entrypoint: './entrypoint-webpack.sh'
volumes:
- .:/server
ports:
- '3035:3035'
environment:
WEBPACKER_DEV_SERVER_HOST: 0.0.0.0
simulator:
build:
context: .
command: rake data_points:simulate
volumes:
- .:/server
environment:
PG_HOST: postgres
PG_PORT: 5432
REDIS_URL: 'redis://redis:6379/1'
depends_on:
- redis
- postgres
redis:
image: redis:alpine
hostname: redis
command: ['redis-server', '--appendonly', 'yes']
ports:
- 6379
postgres:
image: postgres
hostname: postgres
logging:
driver: none
environment:
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5432