pub.solar/docker-compose.yml

27 lines
594 B
YAML
Raw Permalink Normal View History

version: "2.4"
services:
website:
image: registry.greenbaum.cloud/pub_solar/pub.solar:$DEPLOY_TAG
mem_limit: 128m
network_mode: My-Fabric-Network
ports:
- 80
- 443
volumes:
- caddy_data:/data
labels:
- triton.cns.services=pub-solar-website
- "com.docker.swarm.affinities=[\"volumename==pub_solar_caddy_data\"]"
volumes:
caddy_data:
# uncomment this after volume creation
#external: true
name: pub_solar_caddy_data
driver: tritonnfs
driver_opts:
size: "1G"
labels:
- volumename=pub_solar_caddy_data