-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (57 loc) · 1.39 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
version: '3'
services:
youtube_sharing_app_rails:
container_name: youtube_sharing_app_rails
build:
context: .
dockerfile: Dockerfile
command: sh ./bin/docker_start.sh
volumes:
- bundle_path:/bundle
- .:/app
ports:
- "3000:3000"
environment:
RAILS_PORT: 3000
env_file:
- environments/docker_development.env
links:
- youtube_sharing_app_postgres:youtube_sharing_app_postgres
depends_on:
- youtube_sharing_app_postgres
tty: true
stdin_open: true
youtube_sharing_app_postgres:
container_name: youtube_sharing_app_postgres
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
restart: unless-stopped
redis:
image: redis:6.2.6
command: redis-server
restart: unless-stopped
volumes:
- redis:/var/lib/redis/data
# sidekiq:
# links:
# - 'youtube_sharing_app_postgres:youtube_sharing_app_postgres'
# - 'redis:redis'
# depends_on:
# - 'youtube_sharing_app_postgres'
# - 'redis'
# build: .
# command: bundle exec sidekiq -C config/sidekiq.yml
# volumes:
# - bundle_sidekiq_path:/bundle
# - .:/app
# env_file:
# - ./environments/docker_development.env
volumes:
bundle_path:
bundle_sidekiq_path:
postgres_data:
redis: