forked from kookmin-sw/2026-capstone-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (84 loc) · 2.21 KB
/
Copy pathdocker-compose.yml
File metadata and controls
90 lines (84 loc) · 2.21 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
services:
# 백엔드 서버 (FastAPI)
backend:
build: ./app
container_name: picple-api
ports:
- "8000:8000"
env_file:
- .env
volumes:
- ./global-bundle.pem:/app/global-bundle.pem
- ./model_cache:/app/model_cache
environment:
- PYTHONPATH=/
- PYTHONUNBUFFERED=1
- TRANSFORMERS_CACHE=/app/model_cache
- TORCH_HOME=/app/model_cache
- HF_HOME=/app/model_cache
working_dir: /app
command: uvicorn main:app --host 0.0.0.0 --port 8000
restart: always
# 프론트엔드 서버 (React)
frontend:
build:
context: .
dockerfile: ./frontend/Dockerfile
args:
- VITE_API_BASE_URL=${VITE_API_BASE_URL}
- VITE_CHAT_SERVER_URL=${VITE_CHAT_SERVER_URL}
container_name: picple-web
ports:
- "80:80"
- "443:443"
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
restart: always
certbot:
image: certbot/certbot
container_name: picple-certbot
volumes:
- ./certbot/conf:/etc/letsencrypt
- ./certbot/www:/var/www/certbot
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 12h & wait $${!}; done;'"
restart: always
chatwoot:
image: chatwoot/chatwoot:v4.2.0
restart: always
env_file: .env
depends_on:
- redis
volumes:
- ./global-bundle.pem:/app/global-bundle.pem
- ./chatwoot_rack_attack.rb:/app/config/initializers/rack_attack_override.rb
ports:
- "3000:3000"
environment:
RAILS_ENV: production
NODE_ENV: production
INSTALLATION_ENV: docker
ENABLE_RACK_ATTACK: "false"
command: bundle exec rails s -p 3000 -b 0.0.0.0
sidekiq:
image: chatwoot/chatwoot:v4.2.0
restart: always
env_file: .env
depends_on:
- redis
volumes:
- ./global-bundle.pem:/app/global-bundle.pem
environment:
RAILS_ENV: production
NODE_ENV: production
INSTALLATION_ENV: docker
SIDEKIQ_CONCURRENCY: 2
command: bundle exec sidekiq -C config/sidekiq.yml
redis:
image: redis:alpine
restart: always
command: redis-server --requirepass ${REDIS_PASSWORD}
volumes:
- redis:/data
volumes:
redis: