-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-deploy-docker-compose.yml
41 lines (38 loc) · 1.06 KB
/
example-deploy-docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: '3'
services:
db:
image: postgres:9
container_name: maint_db
volumes:
- /srv/docker/postgresql/data:/var/lib/postgresql/data
restart: always
environment:
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: password
web:
image: jmessenger/maint_web:latest
container_name: maint_web
expose:
- "3000"
restart: always
environment:
SECRET_KEY_BASE: secret-key-here
DEVISE_PEPPER: another-secret-key
RAILS_SERVE_STATIC_FILES: "yes"
COMMITTEE: Whatever
REQ_URL: https://www.whatever.org/items/%s
MAIL_SENDER: admin@whatever.org
SERVER_PRODUCTION: www.whatever.org
SERVER_STAGING: www.whatever.org
SERVER_DEVELOPMENT: www.whatever.org
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: password
DB_SERVICE_HOST: "db"
HOST_PORT: ":80"
VIRTUAL_HOST: "www.whatever.org"
LETSENCRYPT_HOST: "www.whatever.org"
LETSENCRYPT_EMAIL: "letsencrypt@whatever.org"
networks:
default:
external:
name: nginx-proxy