-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1.04 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
services:
postgres:
image: postgres
container_name: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: '1234'
api:
build:
context: ./api
command: "./django-dev-entrypoint.sh"
volumes:
- ./api/nvdagen:/api/nvdagen
- ./api/nvdnew:/api/nvdnew
ports:
- "8000:8000"
environment:
- DJANGO_SETTINGS_MODULE=nvdnew.settings.dev
depends_on:
- postgres
frontend:
build:
context: ./frontend
target: base
ports:
- "8080:8080"
command: ["npm", "run", "dev"]
volumes:
- ./frontend/src:/frontend/src
- ./frontend/static:/frontend/static
- ./frontend/test:/frontend/test
fileserver:
build: ./fileserver
ports:
- "9000:9000"
command: ["./main"]
volumes:
- ./fileserver/uploads:/root/uploads
postfix:
build:
context: ./postfix
ports:
- "587:587"
env_file:
- path: ./postfix/.env.default
required: true
- path: ./postfix/.env
required: false