parsley/docker-compose-rlyeh.yml
2019-11-10 10:40:55 -06:00

35 lines
1003 B
YAML

version: '3'
services:
memcache:
image: memcached:1.5.4-alpine
restart: unless-stopped
command: memcached -m 512
web:
image: registry.elbert.us/parsley:production
restart: unless-stopped
environment:
- RAILS_USE_MEMCACHE=true
- PASSENGER_APP_ENV=production
- RAILS_ENV=production
env_file: /etc/default/parsley
volumes:
- /var/log/parsley/:/home/app/parsley/log
networks:
- default
- traefik
labels:
traefik.enable: "true"
traefik.http.routers.parsley.rule: "Host(`parsley.elbert.us`)"
traefik.http.routers.parsley.entrypoints: websecure
traefik.http.routers.parsley.tls: "true"
traefik.http.routers.parsley.tls.certResolver: cert-resolver
traefik.http.routers.parsley-redirect.rule: "Host(`parsley.elbert.us`)"
traefik.http.routers.parsley-redirect.entrypoints: web
traefik.http.routers.parsley-redirect.middlewares: redirect@file
networks:
traefik:
external: true