-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.staging.yml
61 lines (56 loc) · 1.35 KB
/
docker-compose.staging.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
version: '3.8'
services:
event-collector:
container_name: event-collector-prod
env_file:
- database_local.env
- .env
environment:
- NODE_ENV=STAGING
build:
dockerfile: Dockerfile.staging
context: "./backend/event-collector"
volumes:
- /app/node_modules
- ./backend/event-collector:/app
ports:
- '3000:3000'
query-collector:
container_name: query-service-prod
env_file:
- database_local.env
- .env
build:
dockerfile: Dockerfile.staging
context: "./backend/query-service"
environment:
- NODE_ENV=STAGING
volumes:
- /app/node_modules
- ./backend/query-service:/app
ports:
- '6060:6060'
fusion-app:
container_name: frontend-prod
build:
context: ./frontend
dockerfile: Dockerfile.staging
env_file:
- .env
environment:
- NODE_ENV=STAGING
volumes:
- /app/node_modules
- ./frontend:/app
ports:
- '4040:4040'
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
volumes:
database-data: # named volumes can be managed easier using docker-compose