Add production file

This commit is contained in:
Jimmy 2022-01-17 05:23:16 +00:00
parent b00e0faedc
commit 6df31460e8
1 changed files with 29 additions and 9 deletions

View File

@ -1,13 +1,33 @@
version: '3.7' version: '3.7'
services: services:
app: api:
build: . 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"
env_file: env_file:
- .env - .env
ports:
- 8000:80
tty: true
stdin_open: true
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