Commit
This commit is contained in:
@@ -15,6 +15,29 @@ services:
|
||||
# Optional: expose port to host for debugging with a DB client
|
||||
# - "5432:5432"
|
||||
|
||||
echoes_of_the_ashes_redis:
|
||||
image: redis:7-alpine
|
||||
container_name: echoes_of_the_ashes_redis
|
||||
restart: unless-stopped
|
||||
command: >
|
||||
redis-server
|
||||
--appendonly yes
|
||||
--appendfsync everysec
|
||||
--save 900 1
|
||||
--save 300 10
|
||||
--save 60 10000
|
||||
--maxmemory 512mb
|
||||
--maxmemory-policy allkeys-lru
|
||||
volumes:
|
||||
- echoes-redis-data:/data
|
||||
networks:
|
||||
- default_docker
|
||||
healthcheck:
|
||||
test: ["CMD", "redis-cli", "ping"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 3
|
||||
|
||||
# echoes_of_the_ashes_bot:
|
||||
# build: .
|
||||
# container_name: echoes_of_the_ashes_bot
|
||||
@@ -61,8 +84,13 @@ services:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.pwa
|
||||
args:
|
||||
VITE_API_URL: https://api-staging.echoesoftheash.com
|
||||
VITE_WS_URL: wss://api-staging.echoesoftheash.com
|
||||
container_name: echoes_of_the_ashes_pwa
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
- .env
|
||||
depends_on:
|
||||
- echoes_of_the_ashes_api
|
||||
networks:
|
||||
@@ -70,14 +98,14 @@ services:
|
||||
- traefik
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.echoesoftheashgame-http.entrypoints=web
|
||||
- traefik.http.routers.echoesoftheashgame-http.rule=Host(`echoesoftheashgame.patacuack.net`)
|
||||
- traefik.http.routers.echoesoftheashgame-http.middlewares=https-redirect@file
|
||||
- traefik.http.routers.echoesoftheashgame.entrypoints=websecure
|
||||
- traefik.http.routers.echoesoftheashgame.rule=Host(`echoesoftheashgame.patacuack.net`)
|
||||
- traefik.http.routers.echoesoftheashgame.tls=true
|
||||
- traefik.http.routers.echoesoftheashgame.tls.certResolver=production
|
||||
- traefik.http.services.echoesoftheashgame.loadbalancer.server.port=80
|
||||
- traefik.http.routers.stagingechoesoftheash-http.entrypoints=web
|
||||
- traefik.http.routers.stagingechoesoftheash-http.rule=Host(`staging.echoesoftheash.com`)
|
||||
- traefik.http.routers.stagingechoesoftheash-http.middlewares=https-redirect@file
|
||||
- traefik.http.routers.stagingechoesoftheash.entrypoints=websecure
|
||||
- traefik.http.routers.stagingechoesoftheash.rule=Host(`staging.echoesoftheash.com`)
|
||||
- traefik.http.routers.stagingechoesoftheash.tls=true
|
||||
- traefik.http.routers.stagingechoesoftheash.tls.certResolver=production
|
||||
- traefik.http.services.stagingechoesoftheash.loadbalancer.server.port=80
|
||||
|
||||
echoes_of_the_ashes_api:
|
||||
build:
|
||||
@@ -92,12 +120,26 @@ services:
|
||||
- ./images:/app/images:ro
|
||||
depends_on:
|
||||
- echoes_of_the_ashes_db
|
||||
- echoes_of_the_ashes_redis
|
||||
networks:
|
||||
- default_docker
|
||||
- traefik
|
||||
labels:
|
||||
- traefik.enable=true
|
||||
- traefik.http.routers.stagingechoesoftheashapi-http.entrypoints=web
|
||||
- traefik.http.routers.stagingechoesoftheashapi-http.rule=Host(`api-staging.echoesoftheash.com`)
|
||||
- traefik.http.routers.stagingechoesoftheashapi-http.middlewares=https-redirect@file
|
||||
- traefik.http.routers.stagingechoesoftheashapi.entrypoints=websecure
|
||||
- traefik.http.routers.stagingechoesoftheashapi.rule=Host(`api-staging.echoesoftheash.com`)
|
||||
- traefik.http.routers.stagingechoesoftheashapi.tls=true
|
||||
- traefik.http.routers.stagingechoesoftheashapi.tls.certResolver=production
|
||||
- traefik.http.services.stagingechoesoftheashapi.loadbalancer.server.port=8000
|
||||
|
||||
volumes:
|
||||
echoes-postgres-data:
|
||||
name: echoes-of-the-ashes-postgres-data
|
||||
echoes-redis-data:
|
||||
name: echoes-of-the-ashes-redis-data
|
||||
|
||||
networks:
|
||||
default_docker:
|
||||
|
||||
Reference in New Issue
Block a user