-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
58 lines (53 loc) · 1.35 KB
/
docker-compose.yaml
File metadata and controls
58 lines (53 loc) · 1.35 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
version: "3.9"
services:
data-source:
container_name: data-source
build:
context: .
dockerfile: ./data-source/Dockerfile
env_file:
- ./data-source/.env
expose:
- 5000/tcp
command: yarn start
mongo:
container_name: mongo
image: mongo
restart: always
volumes:
- mongo_data:/data/db
env_file:
- ./mongo/.env
gateway:
container_name: gateway
build:
context: .
dockerfile: ./gateway/Dockerfile
env_file:
- ./gateway/.env
ports:
- ${API_GATEWAY_PORT:-8001}:3000
depends_on:
mongo:
condition: service_started
command: yarn start
web-app:
container_name: web-app
build:
context: .
dockerfile: ./web-app/Dockerfile
depends_on:
gateway:
condition: service_started
environment:
- NEXT_PRIVATE_API=http://gateway:3000
- NEXT_PUBLIC_API=http://localhost:${API_GATEWAY_PORT:-8001}
ports:
- ${WEB_APP_PORT:-8000}:3000
entrypoint: [ "/bin/sh", "-c" ]
command:
- |
yarn build
yarn start
volumes:
mongo_data: