-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 1001 Bytes
/
docker-compose.yml
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
services:
caddy-server:
image: caddy:2.9.1-alpine
container_name: caddy-server
restart: unless-stopped
ports:
- "80:80"
- "443:443"
- "443:443/udp"
volumes:
- ./caddy_data:/data
- ./caddy_config:/config
command: >
sh -c "echo '
{
admin 0.0.0.0:2019
}
:80, :443 {
respond \"Domain management service is running!\" 200
}
' > /etc/caddy/Caddyfile && caddy run --config /etc/caddy/Caddyfile"
networks:
- proxy-network
caddycontrol:
image: itbeeazy/caddy-control:1.0.0
container_name: caddycontrol
restart: unless-stopped
volumes:
- ./db:/app/db
environment:
- NODE_ENV=production
- APP_HOST=demo.example.com
- CADDY_SERVER_IP=127.0.0.1
- CADDY_ADMIN_URL=http://caddy-server:2019
- JWT_SECRET=alksdlaksdjasd
depends_on:
- caddy-server
networks:
- proxy-network
networks:
proxy-network:
driver: bridge