-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
117 lines (108 loc) · 2.91 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: '3'
services:
app:
build:
context: .
dockerfile: dockerfiles/Dockerfile.gunicorn
environment:
- HOST=0.0.0.0
- PORT=8081
- PYTHONWARNINGS=ignore
- POSTGRES_USER=username
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- DEBUG=TRUE
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8081:8081"
depends_on:
- database
command:
bash -c "bash /tmp/scripts/wait-for-it.sh database:5432 --timeout=30 && /start.sh"
volumes:
- ./dockerfiles/scripts:/tmp/scripts
app-uvicorn:
build:
context: .
dockerfile: dockerfiles/Dockerfile.uvicorn
environment:
- HOST=0.0.0.0
- PORT=8081
- WEB_CONCURRENCY=1
- PYTHONWARNINGS=ignore
- POSTGRES_USER=username
- POSTGRES_PASS=password
- POSTGRES_DBNAME=postgis
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- DEBUG=TRUE
ports:
- "${MY_DOCKER_IP:-127.0.0.1}:8081:8081"
depends_on:
- database
command:
bash -c "bash /tmp/scripts/wait-for-it.sh database:5432 --timeout=30 && uvicorn tipg.main:app --host 0.0.0.0 --port 8081"
volumes:
- ./dockerfiles/scripts:/tmp/scripts
database:
build:
context: .
dockerfile: dockerfiles/Dockerfile.db
environment:
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
- POSTGRES_DB=postgis
ports:
- "5439:5432"
command: postgres -N 500
volumes:
- ./.pgdata:/var/lib/postgresql/data
# pg_featureserv:
# image: pramsey/pg_featureserv:latest
# environment:
# - DATABASE_URL=postgresql://username:password@database:5432/postgis
# ports:
# - "9000:9000"
# depends_on:
# - database
# fast_features:
# image: ghcr.io/microsoft/ogc-api-fast-features:main
# environment:
# - APP_POSTGRESQL_PROFILE=stac_hybrid
# - APP_POSTGRESQL_HOST=database
# - APP_POSTGRESQL_PORT=5432
# - APP_POSTGRESQL_USER=username
# - APP_POSTGRESQL_PASSWORD=password
# - APP_POSTGERSQL_DBNAME=postgis
# - APP_DATA_SOURCE_TYPES=postgresql
# ports:
# - "8080:80"
# depends_on:
# - database
# pg_tileserv:
# image: pramsey/pg_tileserv:latest
# environment:
# - DATABASE_URL=postgresql://username:password@database:5432/postgis
# ports:
# - "7800:7800"
# depends_on:
# - database
# martin:
# platform: linux/amd64
# image: maplibre/martin
# environment:
# - DATABASE_URL=postgresql://username:password@database:5432/postgis
# ports:
# - "3000:3000"
# depends_on:
# - database
# t-rex:
# platform: linux/amd64
# image: sourcepole/t-rex
# ports:
# - "3000:3000"
# command:
# serve --dbconn postgresql://username:password@database:5432/postgis --bind=0.0.0.0 --port 3000
# depends_on:
# - database