Files
maps-service/compose.yaml

132 lines
3.0 KiB
YAML
Raw Normal View History

2024-12-10 17:03:18 -08: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-10 17:03:18 -08:00
networks:
- maps-service-network
2024-12-15 01:07:26 -08:00
submissions:
2024-12-13 17:20:07 -08:00
image:
maptest-api
2024-12-15 01:07:26 -08:00
container_name: submissions
2024-12-12 14:06:29 -08:00
command: [
# debug
"--debug","serve",
# http service port
"--port","8082",
2024-12-15 01:01:14 -08:00
# internal http endpoints
"--port-internal","8083",
2024-12-12 14:06:29 -08: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-30 20:04:46 -08:00
"--auth-rpc-host","authrpc:8081",
"--data-rpc-host","dataservice:9000",
2024-12-12 14:06:29 -08:00
]
env_file:
- ~/auth-compose/strafesnet_staging.env
2024-12-12 12:15:56 -08:00
depends_on:
- authrpc
2024-12-12 12:15:56 -08:00
- nats
2024-12-10 17:03:18 -08:00
networks:
- maps-service-network
2024-12-12 12:15:56 -08:00
ports:
- "8082:8082"
2024-12-10 17:03:18 -08:00
web:
2024-12-13 17:20:07 -08:00
image:
maptest-frontend
2024-12-10 17:03:18 -08:00
networks:
- maps-service-network
2024-12-12 12:15:56 -08:00
ports:
- "3000:3000"
2025-03-25 19:27:26 -07:00
environment:
2025-03-26 12:46:33 -07:00
- API_HOST=http://submissions:8082/v1
- AUTH_HOST=http://localhost:8080/
2024-12-10 17:03:18 -08:00
validation:
2024-12-13 17:20:07 -08:00
image:
maptest-validator
2024-12-10 17:03:18 -08:00
container_name: validation
env_file:
- ~/auth-compose/strafesnet_staging.env
2024-12-12 14:08:04 -08:00
environment:
2024-12-17 15:13:42 -08:00
- ROBLOX_GROUP_ID=17032139 # "None" is special case string value
- API_HOST_INTERNAL=http://submissions:8083/v1
2024-12-12 14:08:04 -08:00
- NATS_HOST=nats:4222
2025-08-15 19:35:39 -07:00
- LOAD_ASSET_VERSION_PLACE_ID=14001440964
- LOAD_ASSET_VERSION_UNIVERSE_ID=4850603885
2024-12-12 12:15:56 -08:00
depends_on:
- nats
2024-12-15 01:07:26 -08:00
# note: this races the submissions which creates a nats stream
2024-12-12 14:08:04 -08:00
# the validation will panic if the nats stream is not created
2024-12-15 01:07:26 -08: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:
2025-03-26 12:26:37 -07:00
image: registry.itzana.me/strafesnet/auth-service:staging
container_name: authrpc
command: ["serve", "rpc"]
environment:
- REDIS_ADDR=authredis:6379
2025-03-26 12:34:27 -07:00
- RBX_GROUP_ID=17032139
env_file:
- ~/auth-compose/auth-service.env
depends_on:
- authredis
networks:
- maps-service-network
logging:
driver: "none"
auth-web:
2025-03-26 12:26:37 -07:00
image: registry.itzana.me/strafesnet/auth-service:staging
command: ["serve", "web"]
environment:
- REDIS_ADDR=authredis:6379
env_file:
- ~/auth-compose/auth-service.env
depends_on:
- authredis
2024-12-10 17:03:18 -08:00
networks:
- maps-service-network
ports:
- "8080:8080"
volumes:
redis-data: