Refactor Docker Compose configurations and add deployment workflows for cloud-pc and mini-pc services
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
TIMEWEB_API_URL=https://api.timeweb.cloud/api/v1
|
||||
TIMEWEB_API_TOKEN=changeme
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
acme_dns timeweb {
|
||||
ApiURL {env.TIMEWEB_API_URL}
|
||||
ApiToken {env.TIMEWEB_API_TOKEN}
|
||||
}
|
||||
}
|
||||
|
||||
git.ada-dev.ru {
|
||||
reverse_proxy 192.168.1.5:3002
|
||||
}
|
||||
|
||||
cloud.ada-dev.ru {
|
||||
reverse_proxy 192.168.1.5:8081
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
FROM caddy:2-builder-alpine AS builder
|
||||
|
||||
RUN xcaddy build \
|
||||
--with github.com/dmtr636/caddy-dns-timeweb@v1.0.3
|
||||
|
||||
FROM caddy:2-alpine
|
||||
|
||||
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
|
||||
@@ -0,0 +1,16 @@
|
||||
services:
|
||||
caddy:
|
||||
build: .
|
||||
container_name: caddy
|
||||
env_file:
|
||||
- .env
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "80:80"
|
||||
- "443:443"
|
||||
- "443:443/udp"
|
||||
volumes:
|
||||
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
||||
- /opt/data/caddy:/data
|
||||
- /opt/configs/caddy:/config
|
||||
networks: {}
|
||||
Reference in New Issue
Block a user