forked from fosterful/scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
74 lines (71 loc) · 1.53 KB
/
Copy pathdocker-compose.yml
File metadata and controls
74 lines (71 loc) · 1.53 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: "3.7"
x-ruby: &ruby-base
build:
context: ./docker/ruby
args:
- RUBY_VERSION=2.6.5
- NODE_VERSION=11
- INSTALL_PG_CLIENT=true
- UID=${UID}
- GID=${GID}
volumes:
- .:/app
- gems:/gems
- node_modules:/app/node_modules
- packs:/app/public/packs
- rails_cache:/app/tmp/cache
tmpfs:
- /tmp
user: ruby
tty: true
stdin_open: true
depends_on:
- postgres
- redis
services:
rails:
<<: *ruby-base
command: bundle exec rails server -p 3000 -b '0.0.0.0'
ports:
- "3000:3000"
- "1080:1080"
- "43447:43447"
entrypoint: /app/docker/rails-entrypoint
environment:
- WEBPACKER_DEV_SERVER_HOST=webpacker
- SEED_ADMIN_EMAIL=${SEED_ADMIN_EMAIL}
- SEED_ADMIN_PASSWORD=${SEED_ADMIN_PASSWORD}
- SELENIUM_REMOTE_HOST=selenium
- BOOTSNAP_CACHE_DIR=/gems/bootsnap
webpacker:
<<: *ruby-base
command: ./bin/webpack-dev-server
ports:
- "3035:3035"
entrypoint: /app/docker/webpack-entrypoint
sidekiq:
<<: *ruby-base
command: bundle exec sidekiq
entrypoint: /app/docker/sidekiq-entrypoint
environment:
- BOOTSNAP_CACHE_DIR=/gems/bootsnap
selenium:
image: selenium/standalone-chrome
postgres:
image: postgres:11.4
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
build:
context: ./docker/redis
args:
- REDIS_VERSION=5.0
volumes:
- redis:/data
volumes:
postgres-data:
gems:
redis:
node_modules:
packs:
rails_cache: