feat: Docker compose worker server
This commit is contained in:
parent
ddbf41dbeb
commit
e0a902f498
@ -1,11 +1,8 @@
|
|||||||
services:
|
x-app-common: &app-common
|
||||||
app:
|
|
||||||
build:
|
build:
|
||||||
context: ..
|
context: ..
|
||||||
dockerfile: build/package/Dockerfile
|
dockerfile: build/package/Dockerfile
|
||||||
ports:
|
environment: &app-environment
|
||||||
- "8080:8080"
|
|
||||||
environment:
|
|
||||||
PORT: 8080
|
PORT: 8080
|
||||||
DB_URL: postgres://gis:gis@postgres:5432/gis?sslmode=disable
|
DB_URL: postgres://gis:gis@postgres:5432/gis?sslmode=disable
|
||||||
S3_ENDPOINT: minio:9000
|
S3_ENDPOINT: minio:9000
|
||||||
@ -25,6 +22,17 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
|
services:
|
||||||
|
app:
|
||||||
|
<<: *app-common
|
||||||
|
command: ["serve"]
|
||||||
|
ports:
|
||||||
|
- "8080:8080"
|
||||||
|
|
||||||
|
worker:
|
||||||
|
<<: *app-common
|
||||||
|
command: ["worker"]
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
image: postgis/postgis:17-3.5
|
image: postgis/postgis:17-3.5
|
||||||
# postgis/postgis has no native arm64 build; run under emulation on Apple
|
# postgis/postgis has no native arm64 build; run under emulation on Apple
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user