maps-service/compose.yaml

118 lines
2.5 KiB
YAML
Raw Normal View History

2024-12-11 01:03:18 +00:00
version: '3.9'
networks:
maps-service-network:
driver: bridge
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
mapsservice:
2024-12-14 01:20:07 +00:00
image:
maps-service
container_name: mapsservice
2024-12-12 22:06:29 +00:00
command: [
# debug
"--debug","serve",
# http service port
"--port","8082",
2024-12-12 22:06:29 +00:00
# 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","authrpc:8081"
2024-12-12 22:06:29 +00:00
]
2024-12-12 20:15:56 +00:00
depends_on:
- authrpc
2024-12-12 20:15:56 +00:00
- nats
2024-12-11 01:03:18 +00:00
networks:
- maps-service-network
2024-12-12 20:15:56 +00:00
ports:
- "8082:8082"
2024-12-11 01:03:18 +00:00
web:
2024-12-14 01:20:07 +00:00
image:
maps-service-web
2024-12-11 01:03:18 +00:00
networks:
- maps-service-network
2024-12-12 20:15:56 +00:00
ports:
- "3000:3000"
2024-12-11 01:03:18 +00:00
validation:
2024-12-14 01:20:07 +00:00
image:
maps-service-validation
2024-12-11 01:03:18 +00:00
container_name: validation
2024-12-12 22:08:04 +00:00
environment:
- RBXCOOKIE=RBXCOOKIE
- API_HOST=http://mapsservice:8082
2024-12-12 22:08:04 +00:00
- NATS_HOST=nats:4222
- DATA_HOST=http://dataservice:9000
2024-12-12 20:15:56 +00:00
depends_on:
- nats
# note: this races the mapsservice which creates a nats stream
2024-12-12 22:08:04 +00:00
# the validation will panic if the nats stream is not created
- mapsservice
- dataservice
networks:
- maps-service-network
dataservice:
image: registry.itzana.me/strafesnet/data-service:master
container_name: dataservice
environment:
- DEBUG=true
- PG_HOST=10.0.0.29
- PG_PORT=5432
- PG_USER=quat
- PG_DB=data
- PG_PASS=happypostgresuser
networks:
- maps-service-network
authredis:
image: docker.io/redis:latest
container_name: authredis
volumes:
- redis-data:/data
command: ["redis-server", "--appendonly", "yes"]
networks:
- maps-service-network
authrpc:
image: registry.itzana.me/strafesnet/auth-service:master
container_name: authrpc
command: ["serve", "rpc"]
environment:
- REDIS_ADDR=authredis:6379
env_file:
- ../auth-compose/auth-service.env
depends_on:
- authredis
networks:
- maps-service-network
auth-web:
image: registry.itzana.me/strafesnet/auth-service:master
command: ["serve", "web"]
environment:
- REDIS_ADDR=authredis:6379
env_file:
- ../auth-compose/auth-service.env
depends_on:
- authredis
2024-12-11 01:03:18 +00:00
networks:
- maps-service-network
ports:
- "8080:8080"
volumes:
redis-data: