maps-service/compose.yaml

124 lines
2.7 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
command: ["-js"] #"-DVV"
2024-12-11 01:03:18 +00:00
networks:
- maps-service-network
2024-12-15 09:07:26 +00:00
submissions:
2024-12-14 01:20:07 +00:00
image:
2024-12-15 09:07:26 +00:00
maps-service-submissions
container_name: submissions
2024-12-12 22:06:29 +00:00
command: [
# debug
"--debug","serve",
# http service port
"--port","8082",
2024-12-15 09:01:14 +00:00
# internal http endpoints
"--port-internal","8083",
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
env_file:
- ../auth-compose/strafesnet.env
2024-12-12 22:08:04 +00:00
environment:
2024-12-15 09:07:26 +00:00
- API_HOST=http://submissions:8082
- API_HOST_INTERNAL=http://submissions:8083
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
2024-12-15 09:07:26 +00:00
# note: this races the submissions which creates a nats stream
2024-12-12 22:08:04 +00:00
# the validation will panic if the nats stream is not created
2024-12-15 09:07:26 +00:00
- submissions
- 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
logging:
driver: "none"
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: