forked from datafruits/streampusher-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 1.26 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
# containers need to be launched in 'streampusher_default' network
#
# docker-compose -p streampusher icecast up -d
version: '3'
services:
icecast:
image: "mcfiredrill/icecast:latest"
ports:
- "8000:8000"
restart: "always"
volumes:
- /usr/local/share/icecast/logs:/var/www/stream_pusher/shared/log/icecast
redis:
image: "redis:latest"
ports:
- "6379:6379"
restart: "always"
command: "redis-server --requirepass ${REDIS_PASSWORD}"
volumes:
- ./redis-data:/data
rails:
image: "streampusher/streampusher:latest"
user: rails
working_dir: /home/rails/app
command: ./docker_wrapper.sh bundle exec rails server -b '0.0.0.0'
env_file: .env
environment: &shared_env
REDIS_HOST: redis
depends_on:
- redis
volumes:
- .:/home/rails/app
- /tmp:/tmp
- /var/run/docker.sock:/var/run/docker.sock
ports:
- "3000:3000"
sidekiq:
image: "streampusher/streampusher:latest"
user: root
working_dir: /home/rails/app
command: ./docker_wrapper.sh bundle exec sidekiq
env_file: .env
environment:
<<: *shared_env
depends_on:
- redis
volumes:
- .:/home/rails/app
- /var/run/docker.sock:/var/run/docker.sock
- /tmp:/tmp