-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (57 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
57 lines (57 loc) · 1.28 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
services:
db:
image: postgres
restart: always
user: postgres
secrets:
- db-password
volumes:
- db-data:/var/lib/postgresql/data
- ./scripts:/docker-entrypoint-initdb.d
environment:
- POSTGRES_DB=kirbyotd
- POSTGRES_PASSWORD_FILE=/run/secrets/db-password
- TZ=America/Chicago
ports:
- 5432:5432
frontend:
build:
dockerfile: Dockerfile
context: ./client
args:
VITE_API_URL: https://mathisfun.unibutton.com/api # Use Domain name if exists, otherwise use public IP
container_name: kirbyotd_frontend
ports:
- 8080:8080
backend:
build:
dockerfile: Dockerfile
context: ./server
container_name: kirbyotd_backend
secrets:
- db-password
environment:
- DB_HOSTNAME=db # Should usually always be db for this compose file
- DB_PASSWORD_FILE=/run/secrets/db-password
ports:
- 3000:3000
caddy:
image: caddy:2.9.1-alpine
restart: unless-stopped
cap_add:
- NET_ADMIN
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- $PWD/conf:/etc/caddy
- caddy_data:/data
- caddy_config:/config
volumes:
db-data:
caddy_data:
caddy_config:
secrets:
db-password:
file: server/password.txt