@@ -22,11 +22,10 @@ version: "3"
22
22
services :
23
23
# Database
24
24
postgis :
25
- image : postgis/postgis:15-3.3
26
- # image: arm64v8/postgres:15.3-alpine3.18
25
+ image : postgis/postgis:${POSTGIS_TAG:-15-3.3-alpine}
27
26
container_name : " underpass_postgis"
28
27
ports :
29
- - " 5439:5432"
28
+ - " ${DB_PORT:- 5439} :5432"
30
29
environment :
31
30
- POSTGRES_DB=underpass
32
31
- POSTGRES_USER=underpass
@@ -44,44 +43,60 @@ services:
44
43
45
44
# Underpass
46
45
underpass :
46
+ image : " ghcr.io/hotosm/underpass:${APP_VERSION:-debug}"
47
47
container_name : " underpass"
48
48
build :
49
49
context : .
50
50
dockerfile : docker/underpass.dockerfile
51
+ target : debug
52
+ args :
53
+ APP_VERSION : ${APP_VERSION:-debug}
54
+ depends_on : [postgis]
51
55
environment :
52
56
- REPLICATOR_UNDERPASS_DB_URL=underpass:underpass@postgis/underpass
53
57
command : tail -f /dev/null
54
58
volumes :
55
59
- ./replication:/code/build/replication
56
- # - ./:/code
60
+ # - ./:/code
57
61
networks :
58
62
internal :
59
63
60
64
# Underpass API
61
- underpass-api :
65
+ api :
66
+ image : " ghcr.io/hotosm/underpass/api:${APP_VERSION:-debug}"
62
67
container_name : " underpass_api"
63
68
build :
64
69
context : .
65
70
dockerfile : docker/underpass-api.dockerfile
66
- # volumes:
67
- # - ./python:/code/api
71
+ target : debug
72
+ args :
73
+ APP_VERSION : ${APP_VERSION:-debug}
74
+ depends_on : [underpass]
75
+ volumes :
76
+ - ./python:/code
68
77
ports :
69
- - " 8000:8000"
78
+ - " ${API_PORT:- 8000} :8000"
70
79
networks :
71
80
internal :
72
81
environment :
73
82
- UNDERPASS_API_DB=postgresql://underpass:underpass@postgis/underpass
74
83
75
84
# Underpass UI
76
- underpass-ui :
85
+ ui :
86
+ image : " ghcr.io/hotosm/underpass/ui:${APP_VERSION:-debug}"
77
87
container_name : " underpass_ui"
78
88
build :
79
89
context : .
80
90
dockerfile : docker/underpass-ui.dockerfile
91
+ target : debug
92
+ args :
93
+ APP_VERSION : ${APP_VERSION:-debug}
94
+ # # Mount underpass-ui repo
81
95
# volumes:
82
- # - js:/code
96
+ # - ../underpass-ui/src:/code/src
97
+ # - ../underpass-ui/playground:/code/playground
83
98
ports :
84
- - " 5000 :5000"
99
+ - " ${UI_PORT:-8080} :5000"
85
100
networks :
86
101
internal :
87
102
0 commit comments