-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
89 lines (79 loc) · 1.75 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# Run these commands after machine is running
#
# docker-compose run web rake db:create
# docker-compose run web rake db:schema:load
# docker-compose run web rake db:seed
#
# OR
#
# docker-compose run web bundle exec rake db:setup
# docker-compose run web bundle exec rake ts:index
#
# Generate list of popular verses: /utils/update_popular_verses
version: '2'
#============================================================
# Services
#============================================================
services:
db:
image: mysql:5
environment:
- MYSQL_ROOT_PASSWORD=demo
- DB_NAME=memverse_development
volumes:
- memverse-mysql:/var/lib/memverse/data
networks:
- back-tier
ports:
- "3306"
redis:
image: redis:alpine
ports:
- "6379"
networks:
- back-tier
memcache:
image: memcached:1.4
networks:
- back-tier
search:
build: https://github.com/avitus/sphinx-alpine-docker.git
ports:
- "9306"
- "9312"
links:
- db
networks:
- back-tier
web:
build: .
environment:
- RAILS_ENV=development
- RACK_ENV=development
- DOCKERIZED=true
env_file:
- .env
ports:
- "3000:3000"
volumes:
- .:/usr/app
links:
- redis
- db
- search
- memcache
networks:
- front-tier
- back-tier
command: bundle exec rails s -p 3000 -b '0.0.0.0'
#============================================================
# Volumes
#============================================================
volumes:
memverse-mysql:
#============================================================
# Networks
#============================================================
networks:
front-tier:
back-tier: