-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
135 lines (125 loc) · 3.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
135 lines (125 loc) · 3.22 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
services:
cloudflared:
image: cloudflare/cloudflared:latest
command: tunnel --no-autoupdate run
environment:
TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN:?CLOUDFLARE_TUNNEL_TOKEN must be set}
restart: unless-stopped
depends_on:
- nginx
networks:
- midori
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx/nginx.conf.template:/etc/nginx/nginx.conf.template:ro
environment:
- DOMAIN=${DOMAIN:?DOMAIN must be set}
command: >
/bin/sh -c "envsubst '$$DOMAIN'
< /etc/nginx/nginx.conf.template
> /etc/nginx/nginx.conf
&& nginx -g 'daemon off;'"
depends_on:
- murakami-quotes
- tarkov
- dota2
# - chatboard-backend
# - chatboard-frontend
- portfolio
restart: unless-stopped
networks:
- midori
murakami-quotes:
build:
context: ./app/haruki-murakami-random-quotes
expose:
- "3000"
container_name: murakami-quotes
restart: unless-stopped
networks:
- midori
tarkov:
build:
context: ./app/tarkov-flea-market-stock-exchange
expose:
- "3000"
container_name: tarkov
restart: unless-stopped
networks:
- midori
dota2:
build:
context: ./app/dota2currank
expose:
- "3000"
container_name: dota2
restart: unless-stopped
networks:
- midori
# postgres:
# image: postgres:15-alpine
# container_name: chatboard-postgres
# environment:
# POSTGRES_DB: chatboard
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?POSTGRES_PASSWORD must be set}
# volumes:
# - postgres_data:/var/lib/postgresql/data
# expose:
# - "5432"
# restart: unless-stopped
# healthcheck:
# test: ["CMD-SHELL", "pg_isready -U postgres -d chatboard"]
# interval: 10s
# timeout: 5s
# retries: 5
# networks:
# - midori
# chatboard-backend:
# build:
# context: ../chatboard
# expose:
# - "3000"
# container_name: chatboard-backend
# environment:
# DATABASE_URL: postgres://postgres:${POSTGRES_PASSWORD:?POSTGRES_PASSWORD must be set}@postgres:5432/chatboard?sslmode=disable
# JWT_SECRET: ${JWT_SECRET:?JWT_SECRET must be set}
# PORT: 3000
# depends_on:
# postgres:
# condition: service_healthy
# restart: unless-stopped
# networks:
# - midori
# VITE_API_URL uses https:// intentionally — the browser reaches the API via
# Cloudflare (which serves HTTPS), not directly through this container.
# chatboard-frontend:
# build:
# context: ../chatboard/frontend
# args:
# VITE_API_URL: https://chatboard.coutshoko.dev
# expose:
# - "3000"
# container_name: chatboard-frontend
# restart: unless-stopped
# networks:
# - midori
# Build context is ../portfolio — this repo must be cloned as a sibling of
# this repo on the server. The deploy workflow handles this automatically.
portfolio:
build:
context: ./app/portfolio
expose:
- "3000"
container_name: portfolio
restart: unless-stopped
networks:
- midori
volumes:
postgres_data:
networks:
midori:
driver: bridge