-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
51 lines (48 loc) · 1.12 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
version: '3'
services:
app:
container_name: stac-api
build:
context: .
dockerfile: Dockerfile
environment:
- APP_HOST=0.0.0.0
- APP_PORT=8081
- RELOAD=true
- ENVIRONMENT=local
- POSTGRES_USER=username
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST_READER=172.17.0.1
- POSTGRES_HOST_WRITER=172.17.0.1
- POSTGRES_PORT=5432
ports:
- "8081:8081"
volumes:
- ./:/app
depends_on:
- database
database:
container_name: stac-db
image: postgis/postgis:12-3.0
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgis
ports:
- "5432:5432"
migration:
build:
context: .
dockerfile: Dockerfile
environment:
- ENVIRONMENT=development
- POSTGRES_USER=username
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST=172.17.0.1
- POSTGRES_PORT=5432
command: >
bash -c "sleep 10 && alembic upgrade head && python scripts/ingest_joplin.py"
depends_on:
- database