-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (40 loc) · 983 Bytes
/
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
version: '3.7'
services:
backend:
build: src
command: uvicorn app.main:app --reload --workers 1 --host 0.0.0.0 --port 8080
volumes:
- ./src/:/app/
ports:
- 8080:8080
environment:
- DATABASE_URL=postgresql://dummy_pg_user:dummy_pg_pwd@db/dummy_pg_db
- SUPERUSER_LOGIN=dummy_login
- SUPERUSER_PWD=dummy_pwd
- CORS_ORIGIN=${CORS_ORIGIN}
- BUCKET_NAME=${BUCKET_NAME}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
- S3_REGION=${S3_REGION}
- S3_ENDPOINT_URL=${S3_ENDPOINT_URL}
depends_on:
- db
db:
image: postgres:15-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
ports:
- 5432:5432
environment:
- POSTGRES_USER=dummy_pg_user
- POSTGRES_PASSWORD=dummy_pg_pwd
- POSTGRES_DB=dummy_pg_db
nginx:
build: nginx
ports:
- 80:80
- 443:443
depends_on:
- backend
volumes:
postgres_data: