forked from pyronear/pyro-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (47 loc) · 1.21 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
version: '3.7'
services:
pyroapi:
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
- TEST_DATABASE_URL=postgresql://dummy_pg_tuser:dummy_pg_tpwd@db_test/dummy_pg_tdb
- SUPERUSER_LOGIN=dummy_login
- SUPERUSER_PWD=dummy_pwd
- QARNOT_TOKEN=${QARNOT_TOKEN}
- BUCKET_NAME=${BUCKET_NAME}
- BUCKET_MEDIA_FOLDER=${BUCKET_MEDIA_FOLDER}
depends_on:
- db
db:
image: postgres:12.1-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:
- pyroapi
db_test:
image: postgres:12.1-alpine
volumes:
- postgres_data_test:/var/lib/postgresql/data_test/
environment:
- POSTGRES_USER=dummy_pg_tuser
- POSTGRES_PASSWORD=dummy_pg_tpwd
- POSTGRES_DB=dummy_pg_tdb
volumes:
postgres_data:
postgres_data_test: