API/docker-compose.yml

33 lines
781 B
YAML
Raw Normal View History

2021-09-12 08:45:44 +00:00
version: '3.7'
2022-01-17 05:23:16 +00:00
services:
api:
build: ./
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./users.json:/app/app/users.json
restart: unless-stopped
networks:
- caddy
labels:
caddy: console
caddy.reverse_proxy: "{{upstreams 80}}"
#caddy.tls: "admin@localhost"
caddy.tls: "internal"
2021-09-12 08:45:44 +00:00
env_file:
2022-01-17 05:23:16 +00:00
- .env
2021-09-12 08:45:44 +00:00
2022-01-17 05:23:16 +00:00
caddy:
image: lucaslorentz/caddy-docker-proxy:ci-alpine
ports:
- 80:80
- 443:443
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- caddy
restart: unless-stopped
networks:
caddy:
name: caddy