-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (34 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (34 loc) · 850 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
version: "3.8"
services:
frontend:
container_name: frontend-c
image: frontend-i
build:
context: ./frontend
args:
REACT_APP_BACKEND_URL: http://backend:8000
ports:
- 8080:3000
backend:
build: ./backend
container_name: backend-c
image: backend-i
# delete lines 19 & 20 before going to prod. this is for testing purposes only
ports:
- 8081:8000
depends_on:
- db
command: bash -c "alembic upgrade head && uvicorn main:app --host 0.0.0.0"
environment:
- SOUPERDB_SECRET=${SOUPERDB_SECRET}
- REACT_APP_FRONTEND=${REACT_APP_FRONTEND}
db:
image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
postgres_data: