parent
fdeced6a8d
commit
282cbf35c5
@ -1,12 +1,31 @@
|
|||||||
services:
|
services:
|
||||||
jonathan.is:
|
jonathan.is:
|
||||||
image: jonathan.is
|
image: jonathan.is
|
||||||
|
pull_policy: never
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Containerfile
|
dockerfile: Containerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "8081:80"
|
- "8081:80"
|
||||||
|
- "8443:443"
|
||||||
|
- "8443:443/udp"
|
||||||
volumes:
|
volumes:
|
||||||
- ./.pub:/usr/share/caddy
|
- caddy_data:/data
|
||||||
- ./data:/data
|
- caddy_config:/config
|
||||||
|
deploy:
|
||||||
|
profiles: [ deploy ]
|
||||||
|
image: localhost/jonathan.is:deploy
|
||||||
|
pull_policy: never
|
||||||
|
env_file:
|
||||||
|
- production.env
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Containerfile
|
||||||
|
target: deploy
|
||||||
|
command: "neocities push --prune /pub"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
caddy_data:
|
||||||
|
external: true
|
||||||
|
caddy_config:
|
||||||
|
Loading…
Reference in new issue