forked from snibox/snibox-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (39 loc) · 1.06 KB
/
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
42
43
version: '3'
services:
frontend:
image: snibox/nginx-puma:1.13.8
ports:
- "8000:80"
volumes:
- static-files:/var/www/html
depends_on:
- backend
backend:
image: snibox/snibox:latest
command: sh -c "rm -rf tmp/pids && ./bin/rails s -p 3000 -b '0.0.0.0'"
environment:
DB_NAME: "${DB_NAME}"
DB_USER: "${DB_USER}"
DB_PASS: "${DB_PASS}"
DB_HOST: "${DB_HOST}"
DB_PORT: "${DB_PORT}"
FORCE_SSL: "${FORCE_SSL}"
MAILGUN_SMTP_PORT: "${MAILGUN_SMTP_PORT}"
MAILGUN_SMTP_SERVER: "${MAILGUN_SMTP_SERVER}"
MAILGUN_SMTP_LOGIN: "${MAILGUN_SMTP_LOGIN}"
MAILGUN_SMTP_PASSWORD: "${MAILGUN_SMTP_PASSWORD}"
MAILGUN_API_KEY: "${MAILGUN_API_KEY}"
MAILGUN_DOMAIN: "${MAILGUN_DOMAIN}"
MAILGUN_PUBLIC_KEY: "${MAILGUN_PUBLIC_KEY}"
SECRET_KEY_BASE: "${SECRET_KEY_BASE}"
volumes:
- static-files:/app/public
depends_on:
- database
database:
image: postgres:10.1-alpine
volumes:
- pg-data:/var/lib/postgresql/data
volumes:
pg-data:
static-files: