Add production file
This commit is contained in:
parent
b00e0faedc
commit
6df31460e8
|
@ -1,13 +1,33 @@
|
|||
version: '3.7'
|
||||
|
||||
services:
|
||||
app:
|
||||
build: .
|
||||
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"
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- 8000:80
|
||||
tty: true
|
||||
stdin_open: true
|
||||
|
||||
- .env
|
||||
|
||||
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
|
Loading…
Reference in New Issue