feat: Docker compose worker server
This commit is contained in:
parent
ddbf41dbeb
commit
e0a902f498
@ -1,29 +1,37 @@
|
||||
x-app-common: &app-common
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: build/package/Dockerfile
|
||||
environment: &app-environment
|
||||
PORT: 8080
|
||||
DB_URL: postgres://gis:gis@postgres:5432/gis?sslmode=disable
|
||||
S3_ENDPOINT: minio:9000
|
||||
S3_ACCESS_KEY: minioadmin
|
||||
S3_SECRET_KEY: minioadmin
|
||||
S3_BUCKET: geofiles
|
||||
S3_USE_SSL: "false"
|
||||
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672/
|
||||
RABBITMQ_EXCHANGE: gis.events
|
||||
RABBITMQ_QUEUE: gis.events.example
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
minio:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
services:
|
||||
app:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: build/package/Dockerfile
|
||||
<<: *app-common
|
||||
command: ["serve"]
|
||||
ports:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
PORT: 8080
|
||||
DB_URL: postgres://gis:gis@postgres:5432/gis?sslmode=disable
|
||||
S3_ENDPOINT: minio:9000
|
||||
S3_ACCESS_KEY: minioadmin
|
||||
S3_SECRET_KEY: minioadmin
|
||||
S3_BUCKET: geofiles
|
||||
S3_USE_SSL: "false"
|
||||
RABBITMQ_URL: amqp://guest:guest@rabbitmq:5672/
|
||||
RABBITMQ_EXCHANGE: gis.events
|
||||
RABBITMQ_QUEUE: gis.events.example
|
||||
depends_on:
|
||||
postgres:
|
||||
condition: service_healthy
|
||||
minio:
|
||||
condition: service_healthy
|
||||
rabbitmq:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
worker:
|
||||
<<: *app-common
|
||||
command: ["worker"]
|
||||
|
||||
postgres:
|
||||
image: postgis/postgis:17-3.5
|
||||
|
||||
Loading…
Reference in New Issue
Block a user