-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
67 lines (60 loc) · 1.4 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
version: '3.8'
services:
event-collector:
container_name: event-collector-prod
env_file:
- .env
- db_hosted.env
build:
dockerfile: Dockerfile.prod
context: "./backend/event-collector"
environment:
- NODE_ENV=PRODUCTION
- REDIS_URL=redis://cache
volumes:
- /app/node_modules
- ./backend/event-collector:/app
links:
- redis
ports:
- '3000:3000'
query-collector:
container_name: query-service-prod
env_file:
- .env
- db_hosted.env
build:
dockerfile: Dockerfile.prod
context: "./backend/query-service"
volumes:
- /app/node_modules
- ./backend/query-service:/app
environment:
- NODE_ENV=PRODUCTION
ports:
- '6060:6060'
fusion-app:
container_name: frontend-prod
build:
context: ./frontend
dockerfile: Dockerfile.prod
volumes:
- /app/node_modules
- ./frontend:/app
ports:
- '1337:80'
database:
image: "postgres" # use latest official postgres version
ports:
- "5432:5432"
env_file:
- database_local.env # configure postgres
volumes:
- database-data:/var/lib/postgresql/data/ # persist data even if container shuts down'
redis:
image: redis
container_name: cache
expose:
- 6379
volumes:
database-data: # named volumes can be managed easier using docker-compose