fix(infra): docker-compose.yml 서버 실제 구성 반영 + Caddyfile 제거
This commit is contained in:
@@ -1,9 +0,0 @@
|
|||||||
# Gravity Gateway — Caddy Reverse Proxy
|
|
||||||
# Automatic HTTPS via Let's Encrypt
|
|
||||||
#
|
|
||||||
# 도메인을 실제 도메인으로 변경하세요 (예: gateway.variet.net)
|
|
||||||
# Caddy가 자동으로 Let's Encrypt 인증서를 발급합니다.
|
|
||||||
|
|
||||||
ag.variet.net {
|
|
||||||
reverse_proxy gateway:8585
|
|
||||||
}
|
|
||||||
@@ -3,41 +3,28 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: gravity-gateway
|
container_name: gravity-gateway
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
# Port NOT exposed directly — Caddy handles external access
|
ports:
|
||||||
expose:
|
- "127.0.0.1:8585:8585"
|
||||||
- "8585"
|
env_file:
|
||||||
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- DISCORD_TOKEN=${DISCORD_TOKEN}
|
|
||||||
- DISCORD_GUILD_ID=${DISCORD_GUILD_ID}
|
|
||||||
- BOT_MODE=gateway
|
- BOT_MODE=gateway
|
||||||
- GATEWAY_PORT=8585
|
- GATEWAY_PORT=8585
|
||||||
- GATEWAY_API_KEY=${GATEWAY_API_KEY}
|
|
||||||
- GRAVITY_HUB_SECRET=${GRAVITY_HUB_SECRET}
|
|
||||||
- GRAVITY_REGISTRATION_CODE=${GRAVITY_REGISTRATION_CODE}
|
|
||||||
- BRAIN_PATH=/app/data/brain
|
- BRAIN_PATH=/app/data/brain
|
||||||
volumes:
|
volumes:
|
||||||
- gateway-data:/app/data
|
- gateway-data:/app/data
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
- proxy-net
|
||||||
logging:
|
logging:
|
||||||
driver: json-file
|
driver: json-file
|
||||||
options:
|
options:
|
||||||
max-size: "10m"
|
max-size: 10m
|
||||||
max-file: "3"
|
max-file: 3
|
||||||
|
|
||||||
caddy:
|
|
||||||
image: caddy:2-alpine
|
|
||||||
container_name: gravity-caddy
|
|
||||||
restart: unless-stopped
|
|
||||||
ports:
|
|
||||||
- "443:443"
|
|
||||||
- "80:80"
|
|
||||||
volumes:
|
|
||||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
||||||
- caddy-data:/data
|
|
||||||
- caddy-config:/config
|
|
||||||
depends_on:
|
|
||||||
- gateway
|
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
gateway-data:
|
gateway-data:
|
||||||
caddy-data:
|
|
||||||
caddy-config:
|
networks:
|
||||||
|
proxy-net:
|
||||||
|
external: true
|
||||||
|
|||||||
30
docker-compose_server.yml
Normal file
30
docker-compose_server.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
services:
|
||||||
|
gateway:
|
||||||
|
build: .
|
||||||
|
container_name: gravity-gateway
|
||||||
|
restart: unless-stopped
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:8585:8585"
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
environment:
|
||||||
|
- BOT_MODE=gateway
|
||||||
|
- GATEWAY_PORT=8585
|
||||||
|
- BRAIN_PATH=/app/data/brain
|
||||||
|
volumes:
|
||||||
|
- gateway-data:/app/data
|
||||||
|
networks:
|
||||||
|
- default
|
||||||
|
- proxy-net
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: 10m
|
||||||
|
max-file: 3
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
gateway-data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy-net:
|
||||||
|
external: true
|
||||||
Reference in New Issue
Block a user