Files
dokku/plugins/openresty-vhosts/templates/compose.yml.sigil
Jose Diaz-Gonzalez 830f2f2b01 chore: remove references to version in compose files
This is now deprecated and causes a warning to be raised.
2024-09-22 01:38:44 -04:00

26 lines
615 B
Plaintext

---
services:
openresty:
image: "{{ $.OPENRESTY_IMAGE }}"
environment:
- OPENRESTY_LABEL_PREFIX=openresty.
{{ if $.OPENRESTY_LETSENCRYPT_EMAIL }}
- OPENRESTY_LETSENCRYPT_EMAIL={{ $.OPENRESTY_LETSENCRYPT_EMAIL }}
- OPENRESTY_LETSENCRYPT_CA={{ $.OPENRESTY_LETSENCRYPT_SERVER }}
{{ end }}
network_mode: bridge
ports:
- "80:80"
{{ if $.OPENRESTY_LETSENCRYPT_EMAIL }}
- "443:443"
{{ end }}
restart: unless-stopped
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "{{ $.OPENRESTY_DATA_DIR }}:/etc/resty-auto-ssl"