-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (37 loc) · 867 Bytes
/
docker-compose.yaml
File metadata and controls
39 lines (37 loc) · 867 Bytes
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
services:
# Frontend
frontend:
image: frontend:latest
build:
context: .
dockerfile: Dockerfile.frontend
volumes:
- ./dist/:/var/site/
- /tmp/:/tmp/
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 3000:80
# command: "npm run dev"
# Backend
backend:
image: backend:latest
build:
context: .
dockerfile: Dockerfile.backend
volumes:
- ${PWD}:/app/
- /tmp/:/tmp/
ports:
- 5000:5000
environment:
POSTGRES_PASSWORD: "password"
# command: "flask --app src/backend/main.py run --debug --port 5000 --host 0.0.0.0"
postgres:
image: postgres:latest
volumes:
- ./postgres-data/:/var/lib/postgresql/data
- /tmp/:/tmp/
environment:
POSTGRES_PASSWORD: "password"
PGPASSWORD: "password"
POSTGRES_DB: "annotations-db"