-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (61 loc) · 1.34 KB
/
docker-compose.yml
File metadata and controls
63 lines (61 loc) · 1.34 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
version: "3.4"
services:
frontend:
build:
context: ./cble-frontend
args:
- DOMAIN=http://cble.platform
- VITE_API_BASE_URL=http://cble.platform
image: cble-platform/frontend
container_name: cble-frontend
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
network_mode: host
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- cble-caddy-data:/data
- cble-caddy-config:/config
# env_file: .env
backend:
build:
context: ./cble-backend
image: cble-platform/backend
container_name: cble-backend
restart: unless-stopped
network_mode: host
volumes:
- ./config.local.yaml:/app/config.local.yaml
# env_file: .env
db:
image: postgres:15-alpine
container_name: cble-db
restart: always
volumes:
- cble-db:/var/lib/postgresql/data
network_mode: host
ports:
- 5432:5432
environment:
- POSTGRES_USER=cble
- POSTGRES_PASSWORD=cble
- POSTGRES_DB=cble
# redis:
# image: redis:7-alpine
# container_name: cble-redis
# restart: unless-stopped
# networks:
# - cble
# volumes:
# - cble-redis:/data
# env_file: .env
volumes:
cble-db:
driver: local
cble-redis:
driver: local
cble-caddy-data:
driver: local
cble-caddy-config: