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-14 01:34:39 +00:00
|
|
|
command: ["-js"] #"-DVV"
|
2024-12-11 01:03:18 +00:00
|
|
|
networks:
|
|
|
|
- maps-service-network
|
|
|
|
|
2024-12-12 23:42:32 +00:00
|
|
|
mapsservice:
|
2024-12-14 01:20:07 +00:00
|
|
|
image:
|
|
|
|
maps-service
|
2024-12-12 23:42:32 +00:00
|
|
|
container_name: mapsservice
|
2024-12-12 22:06:29 +00:00
|
|
|
command: [
|
|
|
|
# debug
|
|
|
|
"--debug","serve",
|
|
|
|
# http service port
|
2024-12-12 23:42:32 +00:00
|
|
|
"--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",
|
2024-12-12 23:42:32 +00:00
|
|
|
"--auth-rpc-host","authrpc:8081"
|
2024-12-12 22:06:29 +00:00
|
|
|
]
|
2024-12-12 20:15:56 +00:00
|
|
|
depends_on:
|
2024-12-12 23:42:32 +00:00
|
|
|
- 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:
|
2024-12-12 23:42:32 +00:00
|
|
|
- "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:
|
2024-12-14 04:08:43 +00:00
|
|
|
- RBXCOOKIE
|
2024-12-12 23:42:32 +00:00
|
|
|
- API_HOST=http://mapsservice:8082
|
2024-12-12 22:08:04 +00:00
|
|
|
- NATS_HOST=nats:4222
|
2024-12-12 23:42:32 +00:00
|
|
|
- DATA_HOST=http://dataservice:9000
|
2024-12-12 20:15:56 +00:00
|
|
|
depends_on:
|
|
|
|
- nats
|
2024-12-12 23:42:32 +00:00
|
|
|
# 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
|
2024-12-12 23:42:32 +00:00
|
|
|
- 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
|
2024-12-14 01:34:39 +00:00
|
|
|
logging:
|
|
|
|
driver: "none"
|
2024-12-12 23:42:32 +00:00
|
|
|
|
|
|
|
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
|
2024-12-12 23:42:32 +00:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
redis-data:
|