2018-06-09 13:42:38 -05:00
|
|
|
version: '3'
|
2016-07-08 12:56:40 -05:00
|
|
|
|
|
|
|
services:
|
2018-06-09 13:42:38 -05:00
|
|
|
memcache:
|
|
|
|
image: memcached:1.5.4-alpine
|
2018-07-22 14:51:02 -05:00
|
|
|
restart: unless-stopped
|
2018-06-09 13:42:38 -05:00
|
|
|
command: memcached -m 512
|
|
|
|
|
2016-07-08 12:56:40 -05:00
|
|
|
web:
|
2018-07-22 16:15:53 -05:00
|
|
|
image: registry.elbert.us/parsley:production
|
2018-07-22 14:51:02 -05:00
|
|
|
restart: unless-stopped
|
2016-07-08 12:56:40 -05:00
|
|
|
environment:
|
2018-06-09 13:42:38 -05:00
|
|
|
- RAILS_USE_MEMCACHE=true
|
2016-07-08 12:56:40 -05:00
|
|
|
- PASSENGER_APP_ENV=production
|
2018-09-22 01:56:39 -05:00
|
|
|
- RAILS_ENV=production
|
2016-07-08 12:56:40 -05:00
|
|
|
env_file: /etc/default/parsley
|
|
|
|
volumes:
|
2018-07-10 10:31:43 -05:00
|
|
|
- /var/log/parsley/:/home/app/parsley/log
|
|
|
|
networks:
|
|
|
|
- default
|
|
|
|
- traefik
|
|
|
|
labels:
|
|
|
|
traefik.enable: 'true'
|
|
|
|
traefik.frontend.rule: 'Host:parsley.elbert.us'
|
|
|
|
traefik.docker.network: traefik
|
|
|
|
|
|
|
|
networks:
|
|
|
|
traefik:
|
|
|
|
external: true
|