-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (63 loc) · 1.43 KB
/
docker-compose.yml
File metadata and controls
65 lines (63 loc) · 1.43 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
services:
frontend:
build:
context: ./frontend
args:
- VITE_API_BASE_URL=http://localhost
image: cble.io/frontend
container_name: cble-frontend
restart: unless-stopped
networks:
- cble-mgmt
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- cble-caddy-data:/data
- cble-caddy-config:/config
backend:
build:
context: ./backend
image: cble.io/backend
container_name: cble-backend
restart: unless-stopped
volumes:
- ./config.local.yaml:/app/config.local.yaml
- /tmp:/tmp # Connect provider cache and server/client sockets
- /var/run/docker.sock:/var/run/docker.sock # Expose docker socket for running providers
networks:
- cble-mgmt
db:
image: postgres:15-alpine
container_name: cble-db
restart: always
volumes:
- cble-db:/var/lib/postgresql/data
networks:
- cble-mgmt
environment:
- POSTGRES_USER=cble
- POSTGRES_PASSWORD=cble
- POSTGRES_DB=cble
# redis:
# image: redis:7-alpine
# container_name: cble-redis
# restart: unless-stopped
# networks:
# - cble-mgmt
# volumes:
# - cble-redis:/data
# env_file: .env
volumes:
cble-db:
driver: local
cble-redis:
driver: local
cble-caddy-data:
driver: local
cble-caddy-config:
networks:
cble-mgmt:
driver: bridge