-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (50 loc) · 1.05 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
version: "3.7"
services:
web:
build: .
command: >
bash -c "bundle check || bundle install &&
rm -f /app/tmp/pids/server.pid &&
bundle exec rails s -b 0.0.0.0"
volumes:
- .:/app
- bundle-volume:/usr/local/bundle
ports:
- "3000:3000"
env_file:
- .env
depends_on:
- postgres
# - redis
postgres:
image: postgres:latest
container_name: postgres_container
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_DB: "pay_bills_on_time_api_development"
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
# redis:
# image: redis:latest
# container_name: redis_container
# ports:
# - "6379:6379"
# command: redis-server --bind 0.0.0.0
#
# sidekiq:
# build: .
# command: bundle exec sidekiq
# volumes:
# - .:/app
# - bundle-volume:/usr/local/bundle
# env_file:
# - .env
# depends_on:
# - redis
# - postgres
volumes:
bundle-volume:
postgres-data: