-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (68 loc) · 1.49 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
volumes:
dummy_web_bundle:
dummy_web_db:
scim_stub_db:
services:
dummy-web:
image: ruby:3.4.1
platform: linux/x86_64
working_dir: /app/audiences/spec/dummy
environment:
RAILS_ENV: development
VITE_RUBY_HOST: dummy-vite
SCIM_V2_API: http://scim-stub:3002/api/scim/v2/
DATABASE_HOST: mysql
command:
- /bin/sh
- -c
- |
bundle check || bundle install
bundle exec rails db:setup
rm -f tmp/pids/server.pid
bundle exec rails server --binding '0.0.0.0' --port '3000'
ports:
- "3000:3000"
depends_on:
- dummy-vite
- scim-stub
- mysql
volumes:
- .:/app
- dummy_web_bundle:/usr/local/bundle
dummy-vite:
image: node:22.12.0-alpine
platform: linux/x86_64
working_dir: /app/audiences/spec/dummy
command:
- /bin/sh
- -c
- |
yarn install
yarn dev
ports:
- "3036:3036"
volumes:
- .:/app
scim-stub:
image: powerhome/scim-stub
platform: linux/x86_64
command:
- /bin/sh
- -c
- |
bundle exec rails db:setup
rm -f tmp/pids/server.pid
bundle exec rails server --binding '0.0.0.0' --port '3002'
ports:
- "3002:3002"
volumes:
- scim_stub_db:/app/db/development.sqlite3
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
volumes:
- dummy_web_db:/var/lib/mysql