-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (44 loc) · 1 KB
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (44 loc) · 1 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
services:
db:
image: postgres:latest
# image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
env_file:
- ./.env.docker
ports:
- '5432:5432'
survey-backend:
build: ./survey-backend
command: gunicorn --bind 0.0.0.0:5000 run:app
volumes:
- ./survey-backend:/app
ports:
- '5000:5000'
env_file:
- ./.env.docker
depends_on:
- db
# survey-frontend:
# build: ./survey-frontend
# volumes:
# - ./survey-frontend:/app
# - /app/node_modules
# ports:
# - '5173:5173' # For Vite HMR during development
# environment:
# - VITE_API_BASE_URL=/api
nginx:
image: nginx:1.25-alpine
build:
context: ./survey-frontend
dockerfile: Dockerfile
ports:
- '80:80'
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
# - ./survey-frontend/dist:/usr/share/nginx/html # Mount built files
depends_on:
- survey-backend
volumes:
postgres_data: