-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
116 lines (114 loc) · 2.76 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
version: "3.0"
services:
rails:
build:
context: ./docker/ruby
args:
- RUBY_VERSION=3.0.5
- NODE_VERSION=18
- INSTALL_PG_CLIENT=true
- UID=${UID:-1000}
- GID=${GID:-1000}
volumes:
- .:/workspaces/scheduler
- gems:/gems
- node_modules:/workspaces/scheduler/node_modules
- packs:/workspaces/scheduler/public/packs
- rails_cache:/workspaces/scheduler/tmp/cache
tmpfs:
- /tmp
user: ruby
tty: true
stdin_open: true
depends_on:
- postgres
- redis
command: bundle exec rails server -p 3000 -b '0.0.0.0'
ports:
- "3000:3000"
- "1080:1080"
- "43447:43447"
entrypoint: /workspaces/scheduler/docker/rails-entrypoint
environment:
- WEB_CONCURRENCY=1
- 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:
build:
context: ./docker/ruby
args:
- RUBY_VERSION=3.0.5
- NODE_VERSION=18
- INSTALL_PG_CLIENT=true
- UID=${UID:-1000}
- GID=${GID:-1000}
volumes:
- .:/workspaces/scheduler
- gems:/gems
- node_modules:/workspaces/scheduler/node_modules
- packs:/workspaces/scheduler/public/packs
- rails_cache:/workspaces/scheduler/tmp/cache
tmpfs:
- /tmp
user: ruby
tty: true
stdin_open: true
depends_on:
- postgres
- redis
command: ./bin/webpack-dev-server
ports:
- "3035:3035"
entrypoint: /workspaces/scheduler/docker/webpack-entrypoint
sidekiq:
build:
context: ./docker/ruby
args:
- RUBY_VERSION=3.0.5
- NODE_VERSION=18
- INSTALL_PG_CLIENT=true
- UID=${UID:-1000}
- GID=${GID:-1000}
volumes:
- .:/workspaces/scheduler
- gems:/gems
- node_modules:/workspaces/scheduler/node_modules
- packs:/workspaces/scheduler/public/packs
- rails_cache:/workspaces/scheduler/tmp/cache
tmpfs:
- /tmp
user: ruby
tty: true
stdin_open: true
depends_on:
- postgres
- redis
command: bundle exec sidekiq
entrypoint: /workspaces/scheduler/docker/sidekiq-entrypoint
environment:
- BOOTSNAP_CACHE_DIR=/gems/bootsnap
selenium:
image: selenium/standalone-chrome
postgres:
image: postgres:15.2
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
redis:
build:
context: ./docker/redis
args:
- REDIS_VERSION=5.0
volumes:
- redis:/data
volumes:
postgres-data:
gems:
redis:
node_modules:
packs:
rails_cache: