-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.infra.yml
More file actions
55 lines (52 loc) · 1.81 KB
/
docker-compose.infra.yml
File metadata and controls
55 lines (52 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ========================================
# Folioo Server - 공통 인프라 Base (GCE 배포용)
# ========================================
# Blue-Green 배포 공통 서비스: Traefik (리버스 프록시) + cloudflared (터널)
#
# 사용법:
# 이 파일은 단독 실행하지 않고, override 파일과 함께 사용합니다.
# docker compose -f docker-compose.infra.yml -f docker-compose.prod.yml --profile blue up -d
# docker compose -f docker-compose.infra.yml -f docker-compose.dev.yml --profile blue up -d
#
# Note:
# 로컬 개발용 파일은 docker-compose.yml 을 참고하세요.
# ========================================
services:
# ── Traefik (리버스 프록시) ──
traefik:
image: traefik:v3
container_name: folioo-traefik
restart: unless-stopped
command:
- '--providers.docker=true'
- '--providers.docker.exposedbydefault=false'
- '--entrypoints.web.address=:80'
- '--ping=true'
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
healthcheck:
test: ['CMD', 'traefik', 'healthcheck', '--ping']
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
labels:
- 'traefik.enable=false'
networks:
- folioo-network
# ── Cloudflare Tunnel ──
cloudflared:
image: cloudflare/cloudflared:latest
container_name: folioo-tunnel
restart: unless-stopped
command: tunnel run --protocol http2
environment:
- TUNNEL_TOKEN=${TUNNEL_TOKEN:-placeholder}
depends_on:
traefik:
condition: service_healthy
networks:
- folioo-network
networks:
folioo-network:
external: true