mlp-server-tools/docker-compose.yml

101 lines
1.6 KiB
YAML

version: "3"
services:
consul:
container_name: consul
image: consul:latest
command: consul agent -dev -log-level=warn -ui -client=0.0.0.0
hostname: consul
ports:
- "8500:8500"
networks:
- svc
caddy:
container_name: caddy
image: abiosoft/caddy
volumes:
- ./Caddyfile:/etc/Caddyfile
- ./images:/images
ports:
- "80:2015"
networks:
- svc
rdb:
container_name: rdb
image: rethinkdb:latest
volumes:
- rdb-data:/data
ports:
- "8000:8080"
networks:
- rdb
redis:
container_name: redis
image: redis:alpine
networks:
- redis
apigateway:
container_name: apigateway
image: moaorg/apigateway
depends_on:
- consul
networks:
- svc
lobbysvc:
container_name: lobbysvc
image: moaorg/cardgage-lobby
environment:
- "JWT_KEY=this-is-a-test-key"
- "WSS_HOST=ws://192.168.22.23/api/room"
volumes:
- ".:/app"
depends_on:
- consul
- redis
networks:
- svc
- redis
roomsvc:
container_name: roomsvc
image: moaorg/cardgage-room
environment:
- "JWT_KEY=this-is-a-test-key"
volumes:
- ".:/app"
depends_on:
- consul
- rdb
networks:
- svc
- rdb
draftbot:
container_name: draftbot
build:
context: "."
dockerfile: Dockerfile.run
args:
modulepath: "draftbot"
volumes:
- "go-mods:/go"
- "./draftbot:/app"
depends_on:
- consul
- roomsvc
networks:
- svc
volumes:
rdb-data:
go-mods:
networks:
svc:
rdb:
redis: