-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (73 loc) · 1.6 KB
/
docker-compose.yml
File metadata and controls
80 lines (73 loc) · 1.6 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
name: 'certmaster'
x-common-build: &common-build
context: .
dockerfile: ./ca.dockerfile
services:
public:
image: caddy:latest
container_name: 'public'
restart: unless-stopped
ports:
- '80:80'
- '443:443'
- '443:443/udp'
volumes:
- ./Caddyfile:/config/Caddyfile
- ./build:/www
- ./help:/www/help
- data:/data
command: ["caddy", "run", "-c", "/config/Caddyfile"]
networks:
- certmaster
redis:
image: "redis:8.2-rc1-alpine3.22"
container_name: 'certmaster-redis'
restart: unless-stopped
ports:
- "6379:6379"
networks:
- certmaster
certmaster:
build:
<<: *common-build
target: 'certmaster'
container_name: 'certmaster'
restart: unless-stopped
entrypoint: "certmaster"
command: ["-c", "/etc/certmaster/docker.toml"]
environment:
RUST_LOG: "certmaster=trace,common=trace,info"
RUST_BACKTRACE: 1
volumes:
- test:/etc/certmaster
networks:
- certmaster
api:
build:
<<: *common-build
target: 'certmaster'
container_name: 'api'
restart: unless-stopped
entrypoint: "web"
command: ["-c", "/etc/certmaster/docker.toml"]
environment:
RUST_LOG: "certmaster=trace,common=trace,web=trace,info"
RUST_BACKTRACE: 1
ports:
- "9999:9999"
volumes:
- test:/etc/certmaster
- ./out/api:/usr/bin/api
networks:
- certmaster
networks:
certmaster:
driver: bridge
volumes:
data:
test:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: './test'