parent
fdeced6a8d
commit
282cbf35c5
@ -1,12 +1,31 @@
|
||||
services:
|
||||
jonathan.is:
|
||||
image: jonathan.is
|
||||
pull_policy: never
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Containerfile
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "8081:80"
|
||||
- "8443:443"
|
||||
- "8443:443/udp"
|
||||
volumes:
|
||||
- ./.pub:/usr/share/caddy
|
||||
- ./data:/data
|
||||
- caddy_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