-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (52 loc) · 1.1 KB
/
docker-compose.yml
File metadata and controls
58 lines (52 loc) · 1.1 KB
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
version: "3.7"
volumes:
bundle-volume:
mysql-volume:
redis-volume:
services:
mysql:
build:
context: .
dockerfile: ./containers/local/db/Dockerfile
ports:
- "7706:3306"
volumes:
- mysql-volume:/var/lib/mysql
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
redis:
image: redis:alpine
ports:
- "7779:6379"
volumes:
- redis-volume:/data
web: &web
build:
context: .
dockerfile: ./containers/local/rails/Dockerfile
volumes:
- .:/usr/src/app:cached
- bundle-volume:/usr/src/app/vendor/bundle
environment:
TWITTER_API_KEY: $TWITTER_API_KEY
TWITTER_API_SECRET: $TWITTER_API_SECRET
GOOGLE_API_KEY: $GOOGLE_API_KEY
RDS_HOSTNAME: mysql
RDS_USERNAME: root
REDIS_HOSTNAME: redis
REDIS_PORT: 6379
MANUAL: $MANUAL
rails:
<<: *web
ports:
- "3000:3000"
command: /usr/src/app/bin/start_dev_server.sh
depends_on:
- mysql
- redis
sidekiq:
<<: *web
command: /usr/src/app/bin/start_sidekiq.sh
depends_on:
- mysql
- redis