blob: db3186c7fd0cd58e3d9b5e8df8ee3992b3d83400 (
plain)
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
|
version: '2'
services:
www:
image: nginx:latest
volumes:
- ./config/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./public:/var/www/public
- ./config/nginx/server.crt:/etc/nginx/server.crt
- ./config/nginx/server.key:/etc/nginx/server.key
links:
- web
ports:
- "80:80"
- "443:443"
web:
build: .
command: bundle exec foreman start web
volumes:
- .:/app
links:
- redis
- db
depends_on:
- redis
- db
environment:
- REDIS_URL=redis://redis:6379/12
- RAILS_LOG_TO_STDOUT=true
db:
image: postgres:latest
ports:
- "5432:5432"
volumes:
- ./db/data:/var/lib/postgresql/data
redis:
image: redis:latest
ports:
- "6379:6379"
|