-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
67 lines (62 loc) · 1.58 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.8"
volumes:
postgres:
bundle:
services:
app:
build: .
environment:
- BUNDLE_PATH=/bundle
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/feeder_development
- FREEFEED_BASE_URL
- FREEFEED_TOKEN
- HONEYBADGER_API_KEY=$FEEDER_HONEYBADGER_API_KEY
- RAILS_ENV=development
- RAILS_MASTER_KEY=$FEEDER_RAILS_MASTER_KEY_DEVELOPMENT
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY_BASE
- COLOR_LOGS=1
command: bash -c "rm -f tmp/pids/server.pid && bundle exec rails server -p 3000 -b 0.0.0.0"
ports:
- 3000:3000
depends_on:
- postgres
- redis
volumes:
- .:/app
- bundle:/bundle
sh:
build: .
environment:
- BUNDLE_PATH=/bundle
- DATABASE_URL=postgresql://postgres:postgres@postgres:5432/feeder_development
- FREEFEED_BASE_URL
- FREEFEED_TOKEN
- HONEYBADGER_API_KEY=$FEEDER_HONEYBADGER_API_KEY
- RAILS_ENV=development
- RAILS_MASTER_KEY=$FEEDER_RAILS_MASTER_KEY_DEVELOPMENT
- REDIS_URL=redis://redis:6379/0
- SECRET_KEY_BASE
- COLOR_LOGS=1
command: bash -c "bundle exec bash"
depends_on:
- postgres
- redis
volumes:
- .:/app
- bundle:/bundle
postgres:
image: postgres:10
environment:
POSTGRES_DB: feeder_development
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
PGDATA: /var/lib/postgresql/data
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
redis:
image: redis:7-alpine
ports:
- 6379