-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
62 lines (61 loc) · 1.34 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:
db:
image: mysql:5.7
volumes:
- mysql-data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: 1ns1tu
insitu:
build: .
entrypoint: /insitu/bin/entrypoint.sh
command: bundle exec rails s -p 3000 -b '0.0.0.0'
stdin_open: true
tty: true
volumes:
- .:/insitu:delegated
- bundle:/usr/local/bundle:delegated
- "$SSH_AUTH_SOCK:/tmp/agent.sock"
environment:
- SSH_AUTH_SOCK=/tmp/agent.sock
- REDIS_PROVIDER=redis://redis:6379
- DATABASE_USER=root
- DATABASE_PASSWORD=1ns1tu
- DATABASE_HOST=db
ports:
- "3000:3000"
- "1666:1666"
links:
- db
- redis
redis:
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
expose:
- "6379"
volumes:
- redis-data:/data:delegated
sidekiq:
depends_on:
- 'db'
- 'redis'
build: .
command: sidekiq -C config/sidekiq.yml
stdin_open: true
tty: true
volumes:
- .:/insitu:delegated
- bundle:/usr/local/bundle:delegated
- "$SSH_AUTH_SOCK:/tmp/agent.sock"
environment:
- SSH_AUTH_SOCK=/tmp/agent.sock
- DATABASE_USER=root
- DATABASE_PASSWORD=1ns1tu
- DATABASE_HOST=db
ports:
- "2666:1666"
volumes:
mysql-data: {}
redis-data: {}
bundle: {}