2021-10-12 03:57:28 +02:00
|
|
|
version: "3.9"
|
|
|
|
services:
|
|
|
|
caddy-gen:
|
|
|
|
image: "wemakeservices/caddy-gen:latest"
|
2021-07-10 11:05:01 +02:00
|
|
|
restart: always
|
2020-08-19 06:23:04 +02:00
|
|
|
volumes:
|
2021-10-12 03:57:28 +02:00
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro # needs socket to read events
|
|
|
|
- ./caddy-info:/data/caddy # needs volume to back up certificates
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
depends_on:
|
|
|
|
- main
|
|
|
|
main:
|
|
|
|
build: .
|
|
|
|
ports:
|
|
|
|
- "3000:3000"
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
labels:
|
|
|
|
virtual.host: "cappuccino.nisarg.io"
|
|
|
|
virtual.port: "3000"
|
|
|
|
virtual.tls-email: "me@nisarg.io"
|
|
|
|
|
2021-11-09 02:39:30 +01:00
|
|
|
volumes:
|
|
|
|
caddy-certificates:
|
|
|
|
driver: local
|