-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (45 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
48 lines (45 loc) · 1.16 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
version: '3.8'
services:
# Portfolio application
portfolio:
image: ghcr.io/websavva/portfolio:${WS_PUBLIC_RELEASE_VERSION}
container_name: app
restart: unless-stopped
environment:
- NODE_ENV=production
- PORT=3000
- WS_PUBLIC_BASE_URL=https://websavva.dev
- WS_PRIVATE_TELEGRAM_BOT_API_KEY=${WS_PRIVATE_TELEGRAM_BOT_API_KEY}
- WS_PRIVATE_TELEGRAM_BOT_CHAT_ID=${WS_PRIVATE_TELEGRAM_BOT_CHAT_ID}
networks:
- portfolio
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Nginx reverse proxy
nginx:
image: nginx:1.25-alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
depends_on:
portfolio:
condition: service_healthy
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- /ssl-certificates:/ssl-certificates
networks:
- portfolio
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/api/health"]
interval: 5s
timeout: 5s
retries: 15
start_period: 5s
networks:
portfolio: