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