-
-
Notifications
You must be signed in to change notification settings - Fork 152
/
docker-compose.yml
96 lines (89 loc) · 2.04 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
# docker-compose is provided for development purposes only and is not
# intended for use as a production entropic setup.
version: '3.1'
services:
db:
image: postgres:10.1-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${USER}
networks:
- entropic
redis:
image: redis:alpine
ports:
- "6379:6379"
networks:
- entropic
queue:
image: schickling/beanstalkd
ports:
- "11300:11300"
volumes:
- beanstalk_wal:/var/lib/beanstalkd/
networks:
- entropic
registry:
image: mhart/alpine-node:12
volumes:
- ./services/:/services
working_dir: /services/registry
command: sh -c "npm run dev"
networks:
- entropic
ports:
- "3000:3000"
env_file:
- ./services/registry/.env
environment:
STORAGE_API_URL: http://storage:3002
PORT: 3000
WEB_HOST: http://localhost:3001
REDIS_URL: redis://redis:6379
EXTERNAL_HOST: http://localhost:3000
web:
image: mhart/alpine-node:12
volumes:
- ./services/:/services
working_dir: /services/web
command: npm start
networks:
- entropic
ports:
- "3001:3001"
env_file:
- ./services/web/.env
environment:
STORAGE_API_URL: http://storage:3002
PORT: 3001
WEB_HOST: http://localhost:3001
REDIS_URL: redis://redis:6379
EXTERNAL_HOST: http://localhost:3001
storage:
image: mhart/alpine-node:12
volumes:
- ./services/:/services
working_dir: /services/storage
command: npm start
networks:
- entropic
# ports are explicitly hidden, this is an internal service only.
#ports:
# - "3002:3002"
env_file:
- ./services/storage/.env
environment:
POSTGRES_URL: postgres://postgres@db:5432
PGHOST: db
REDIS_URL: redis://redis:6379
PORT: 3002
PGUSER: postgres
PGDATABASE: entropic_dev
volumes:
postgres_data:
beanstalk_wal:
networks:
entropic: