parsley/docker-compose-rlyeh.yml
2020-04-12 13:23:22 -05:00

38 lines
1007 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
- SECRET_KEY_BASE=${SECRET_KEY_BASE}
- PARSLEY_DB_HOST=${PARSLEY_DB_HOST}
- PARSLEY_DB_USER=${PARSLEY_DB_USER}
- PARSLEY_DB_PASSWORD=${PARSLEY_DB_PASSWORD}
- PARSLEY_DB_NAME=${PARSLEY_DB_NAME}
- PARSLEY_PG_PASSWORD=${PARSLEY_PG_PASSWORD}
networks:
- default
- traefik
- db
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
networks:
traefik:
external: true
db:
external: true