-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (48 loc) · 1.11 KB
/
docker-compose.yml
File metadata and controls
54 lines (48 loc) · 1.11 KB
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
44
45
46
47
48
49
50
51
52
53
54
version: '3'
services:
db:
image: 'postgres:alpine'
environment:
- POSTGRES_DATABASE=docker_demo_development
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
volumes:
- "db-data:/var/lib/postgresql/data"
memcached:
image: memcached:1.5-alpine
redis:
image: redis:4.0-alpine
app: &app_base
image: parthmodi/docker_demo:latest
environment:
- RACK_ENV=production
- RAILS_ENV=production
- REDIS_CABLE_URL=redis://redis:6379/1
- MEMCACHED_HOST=memcached
- DB_HOST=db
- POSTGRES_DATABASE=docker_demo_production
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- DATABASE_URL=postgres://db:5432/docker_demo_production
- SECRET_KEY_BASE
- VIRTUAL_HOST=docker_demo.docker
- VIRTUAL_PORT=3000
volumes:
- "app-data:/home/app"
ports:
- "3000:3000"
links:
- db
- redis
- memcached
web:
image: parthmodi/docker_nginx:latest
links:
- app
ports:
- "8080:80"
volumes:
- "app-data:/home/app"
volumes:
db-data:
app-data: