2017-11-03 22:32:30 +01:00
|
|
|
version: '3'
|
2019-11-22 15:29:58 +01:00
|
|
|
|
2016-04-06 00:49:19 +02:00
|
|
|
services:
|
2016-04-11 15:28:22 +02:00
|
|
|
db:
|
2016-04-06 00:49:19 +02:00
|
|
|
image: postgres
|
2019-11-22 15:29:58 +01:00
|
|
|
restart: unless-stopped
|
2017-11-03 22:32:30 +01:00
|
|
|
volumes:
|
|
|
|
- data:/var/lib/postgresql/data
|
2019-11-22 15:29:58 +01:00
|
|
|
|
2016-04-11 15:28:22 +02:00
|
|
|
web:
|
2018-09-12 01:54:39 +02:00
|
|
|
command: unicorn -c config/unicorn.rb
|
2018-01-08 13:12:54 +01:00
|
|
|
entrypoint: bin/wait-for-it.sh db:5432 -s --
|
2019-11-22 15:29:58 +01:00
|
|
|
env_file: .env
|
2016-04-06 00:49:19 +02:00
|
|
|
environment:
|
2017-01-03 14:37:40 +01:00
|
|
|
DATABASE_URL: postgres://postgres@db/postgres
|
2017-11-03 22:32:30 +01:00
|
|
|
expose:
|
2018-09-12 01:54:39 +02:00
|
|
|
- '8080'
|
2019-11-22 15:29:58 +01:00
|
|
|
image: hakanensari/frankfurter
|
2017-01-03 14:37:40 +01:00
|
|
|
links:
|
2016-04-11 15:28:22 +02:00
|
|
|
- db
|
2019-11-22 15:29:58 +01:00
|
|
|
logging:
|
|
|
|
options:
|
|
|
|
max-size: "50m"
|
|
|
|
max-file: "10"
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
nginx-proxy:
|
|
|
|
image: jwilder/nginx-proxy
|
|
|
|
labels:
|
|
|
|
- "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
|
|
|
|
logging:
|
|
|
|
options:
|
|
|
|
max-size: "50m"
|
|
|
|
max-file: "10"
|
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
- "443:443"
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /etc/nginx/conf.d
|
|
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
|
|
- ./limit_req.conf:/etc/nginx/conf.d/limit_req.conf:ro
|
|
|
|
- certs:/etc/nginx/certs:ro
|
|
|
|
- html:/usr/share/nginx/html
|
|
|
|
- vhost.d:/etc/nginx/vhost.d
|
|
|
|
|
|
|
|
letsencrypt-nginx-proxy-companion:
|
|
|
|
depends_on:
|
|
|
|
- nginx-proxy
|
|
|
|
image: jrcs/letsencrypt-nginx-proxy-companion
|
|
|
|
logging:
|
|
|
|
options:
|
|
|
|
max-size: "50m"
|
|
|
|
max-file: "10"
|
|
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
|
|
- certs:/etc/nginx/certs:rw
|
|
|
|
- html:/usr/share/nginx/html
|
|
|
|
- vhost.d:/etc/nginx/vhost.d
|
|
|
|
|
2017-11-03 22:32:30 +01:00
|
|
|
volumes:
|
2019-11-22 15:29:58 +01:00
|
|
|
certs:
|
2017-11-03 22:32:30 +01:00
|
|
|
data:
|
2019-11-22 15:29:58 +01:00
|
|
|
html:
|
|
|
|
vhost.d:
|