maps-service/compose.yaml

75 lines
1.5 KiB
YAML
Raw Permalink Normal View History

2024-12-11 01:03:18 +00:00
version: '3.9'
networks:
maps-service-network:
driver: bridge
2024-12-12 21:12:21 +00:00
secrets:
netrc:
file: /home/quat/.netrc
2024-12-11 01:03:18 +00:00
services:
nats:
image: docker.io/nats:latest
container_name: nats
2024-12-12 20:15:56 +00:00
command: ["-js"]
2024-12-11 01:03:18 +00:00
networks:
- maps-service-network
2024-12-12 20:15:56 +00:00
ports:
- "4222:4222"
2024-12-11 01:03:18 +00:00
maps-service:
build:
2024-12-12 21:12:21 +00:00
secrets:
- netrc
2024-12-11 01:03:18 +00:00
context: .
dockerfile: Containerfile
container_name: maps-service
2024-12-12 22:06:29 +00:00
command: [
# debug
"--debug","serve",
# http service port
"--port","8081",
# postgres
"--pg-host","10.0.0.29",
"--pg-port","5432",
"--pg-db","maps",
"--pg-user","quat",
"--pg-password","happypostgresuser",
# other hosts
"--nats-host","nats:4222",
"--auth-rpc-host","localhost:8090"
]
2024-12-12 20:15:56 +00:00
depends_on:
- nats
2024-12-11 01:03:18 +00:00
networks:
- maps-service-network
2024-12-12 20:15:56 +00:00
ports:
- "8081:8081"
2024-12-11 01:03:18 +00:00
web:
build:
context: web
dockerfile: Containerfile
networks:
- maps-service-network
2024-12-12 20:15:56 +00:00
ports:
- "3000:3000"
2024-12-11 01:03:18 +00:00
validation:
build:
context: validation
dockerfile: Containerfile
container_name: validation
2024-12-12 22:08:04 +00:00
environment:
- RBXCOOKIE=RBXCOOKIE
- API_HOST=http://localhost:8081
- NATS_HOST=nats:4222
- DATA_HOST=http://localhost:9000
2024-12-12 20:15:56 +00:00
depends_on:
- nats
2024-12-12 22:08:04 +00:00
# note: this races the maps-service which creates a nats stream
# the validation will panic if the nats stream is not created
- maps-service
2024-12-11 01:03:18 +00:00
networks:
- maps-service-network