-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 920 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 920 Bytes
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
version: "3.9"
services:
redis_db:
image: redis:6-alpine
command: redis-server
ports:
- '6379:6379'
volumes:
- './tmp/redis-dev:/data'
db:
image: postgres:16
environment:
POSTGRES_DB: dm2_staging
POSTGRES_USER: dm2_dev_user
POSTGRES_PASSWORD: dm2_dev_password
command: postgres -c listen_addresses='*'
volumes:
- ./tmp/dev-db:/var/lib/postgresql/data
app:
build: .
command: bash -c "rm -f tmp/pids/server.pid && cd /opt/app && bundle exec foreman start -f Procfile.dev"
ports:
- "3001:3001"
- "3000:3000"
depends_on:
- db
- redis_db
env_file:
- .env
environment: # May be overridden by values in .env
DATABASE_URL: postgres://dm2_dev_user:dm2_dev_password@db
RACK_ENV: development
RAILS_ENV: development
REDIS_URL: redis://redis_db:6379
REDIS_PROVIDER: REDIS_URL