forked from sardjv/esr_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml.sample
executable file
·93 lines (86 loc) · 1.98 KB
/
docker-compose.override.yml.sample
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
89
90
91
92
93
# Development docker-compose file.
# To use: mv docker-compose.override.yml.sample docker-compose.override.yml
version: '3.7'
services:
db:
image: 'mysql:8.0.22'
restart: always
volumes:
- 'db:/var/lib/mysql'
env_file:
- '.env'
environment:
- MYSQL_DATABASE=esr_api_development
db_test:
image: 'mysql:8.0.22'
restart: always
volumes:
- 'db_test:/var/lib/mysql'
env_file:
- '.env'
environment:
- MYSQL_DATABASE=esr_api_test
rails:
depends_on:
- db
- db_test
- redis
- sidekiq
- webpacker
build: .
command: ./script/start_rails_development.sh
ports:
- '3001:3000'
volumes:
- '.:/app'
# We cache the bundle so that we don't re-download every gem on any change to the Gemfile.
- bundle_cache:/bundle
environment:
- BUNDLE_PATH=/bundle/vendor
- WEBPACKER_DEV_SERVER_HOST=webpacker
- NODE_ENV=development
- RAILS_ENV=development
- RAILS_MAX_THREADS=1 # 1 is good for debugging.
- WEB_CONCURRENCY=1 # 1 is good for debugging.
env_file:
- '.env'
bundle_cache:
# BusyBox combines tiny versions of many common UNIX utilities into a single small executable.
image: busybox:1.32.0
volumes:
- '.:/bundle_cache'
sidekiq:
depends_on:
- 'db'
- 'redis'
build: .
command: ./script/start_sidekiq.sh
volumes:
- '.:/app'
- bundle_cache:/bundle
environment:
- BUNDLE_PATH=/bundle/vendor
- NODE_ENV=development
- RAILS_ENV=development
env_file:
- '.env'
webpacker:
build: .
command: ./script/start_webpacker.sh
ports:
- '3035:3035'
volumes:
- '.:/app'
- bundle_cache:/bundle
environment:
- BUNDLE_PATH=/bundle/vendor
- WEBPACKER_DEV_SERVER_HOST=0.0.0.0
- NODE_ENV=development
- RAILS_ENV=development
env_file:
- '.env'
volumes:
bundle_cache:
redis:
db:
db_test: