-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
65 lines (58 loc) · 1.32 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
version: "3.9"
services:
mongodb_container:
image: mongo:latest
container_name: mongodb_container
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: rootpassword
ports:
- "${MONGODB_PORT}:27017"
volumes:
- mongodb_container:/data/db
backend-go:
build:
context: ./backend/go
dockerfile: Dockerfile
container_name: backend-go
volumes:
- ./backend/go/:/usr/app
ports:
- "${BACKEND_GO_PORT}:8080"
backend-node:
build:
context: ./backend/node
dockerfile: Dockerfile
container_name: backend-node
depends_on:
- mongodb_container
environment:
- MONGODB_URL
volumes:
- ./backend/node/:/usr/app
ports:
- "${BACKEND_NODE_PORT}:5000"
backend-python:
build:
context: ./backend/python/security_header
dockerfile: Dockerfile
container_name: backend-python
volumes:
- ./backend/python/security_header/:/app
ports:
- "${BACKEND_PYTHON_PORT}:8000"
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend
depends_on:
- backend-go
- backend-node
- backend-python
volumes:
- ./frontend/:/usr/app
ports:
- "${FRONTEND_PORT}:3000"
volumes:
mongodb_container: