-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (46 loc) · 915 Bytes
/
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
version: "3.9"
services:
db:
image: mongo:5
container_name: exam-poll_db
restart: unless-stopped
networks:
- internal
expose:
- "27017"
volumes:
- db:/data/db
backend:
container_name: exam-poll_backend
build: backend
restart: unless-stopped
depends_on:
- db
networks:
- internal
expose:
- "8000"
environment:
- EXAM_POLL_CORS_LIST=*
- EXAM_POLL_MONGODB=mongodb://db:27017
- EXAM_POLL_HTTP_LISTEN=0.0.0.0:8000
- EXAM_POLL_DATABASE=exam-poll
- EXAM_POLL_COLLECTION=polls
frontend:
container_name: exam-poll_frontend
build:
context: frontend
args:
- API_BASEURL=http://backend:8000
- NEXT_PUBLIC_API_BASEURL=http://localhost:8000
restart: unless-stopped
depends_on:
- backend
networks:
- internal
expose:
- "3000"
networks:
internal:
volumes:
db: