-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
37 lines (37 loc) · 1011 Bytes
/
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
version: '2'
services:
postgresql:
image: scalingo/postgresql:10.4.0-1
ports:
- 5432:5432
environment:
DB_UID: 1000
volumes:
- ./docker/postgresql-data:/var/lib/postgresql:rw
command: /postgresql
redis:
image: scalingo/redis:4.0.1-1
volumes:
- ./docker/redis-data:/var/lib/redis:rw
command: /redis
environment:
DB_PASSWORD: "pipo"
web:
build: .
volumes:
- .:/usr/src/app:rw
- ./docker/ssh:/root/.ssh:ro
environment:
CLOUDINARY_URL: "${CLOUDINARY_URL}"
DATABASE_URL: postgresql://admin:admin-secret@postgresql:5432/rubyparis_development
DATABASE_URL_TEST: postgresql://admin:admin-secret@postgresql:5432/rubyparis_test
EMAIL_RECIPIENTS: "[email protected]"
MAIL_URL: "${MAIL_URL}"
RACK_ENV: "development"
RAILS_ENV: "development"
REDIS_URL: "redis://:pipo@redis:6379"
links:
- postgresql
ports:
- 3000:3000
command: rails server -b 0.0.0.0 -p 3000