-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.39 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
version: '3'
services:
nginx:
image: nginx:1.24.0
volumes:
- ./nginx/nginx-local-frontend-dev.conf:/etc/nginx/nginx.conf
- ./nginx/config:/etc/ssl
ports:
- 443:443
depends_on:
- api
# Commented out here so that HMR can be used via Vite for frontend development
# frontend:
# image: frontend
# env_file:
# - .env
# build:
# dockerfile: Dockerfile
# context: ./frontend/
# ports:
# - 8080:8080
# restart: unless-stopped
# # # depends_on:
# # # - api
api:
image: api
ports:
- 8001:8000
- 5678:5678
restart: unless-stopped
volumes:
- ./api/hydroprocess_db:/hydroprocess_db
build:
context: ./api/
dockerfile: Dockerfile
working_dir: /hydroprocess_db
command: python -m debugpy --listen 0.0.0.0:5678 -m uvicorn --host 0.0.0.0 --port 8000 --proxy-headers main:app --reload
env_file:
- .env
depends_on:
- postgres
postgres:
image: postgis/postgis:16-master
ports:
- 5432:5432
volumes:
- postgres_data:/var/lib/postgresql/data
# - ./data/combined_imports.sql:/docker-entrypoint-initdb.d/combined_imports.sql
- ./data/combined_imports.sql:/data/combined_imports.sql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: hydroprocess
volumes:
postgres_data: