-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
docker-compose.yml
74 lines (68 loc) · 2.36 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
networks:
primary:
volumes:
external:
node_modules:
x-default-app: &default_app
build: .
image: hopsoft/turbo_boost-commands
stdin_open: true
tty: true
environment:
DATABASE_URL: sqlite3:///mnt/external/database/development.sqlite3
GEM_HOME: /mnt/external/gems
PLAYWRIGHT_BROWSERS_PATH: 0
RAILS_ENV: development
RAILS_LOG_TO_STDOUT: true
RAILS_SERVE_STATIC_FILES: true
networks:
- primary
volumes:
- .:/app
- external:/mnt/external
- node_modules:/app/node_modules
- ../debounced:/debounced
services:
## ==========================================================================================================
## Shell
## ==========================================================================================================
#shell:
# <<: *default_app
# container_name: turbo_boost-commands-shell
# command: tail -f /dev/null
# ==========================================================================================================
# Web - Runs the test/dummy Rails app
# ==========================================================================================================
web:
<<: *default_app
container_name: turbo_boost-commands-web
ports:
- 3000:3000
command: bin/docker/run/local
healthcheck:
test:
['CMD', 'curl', '--silent', '--fail', 'http://localhost:3000/health']
interval: 30s
timeout: 30s
retries: 10
# ==========================================================================================================
# ESBuild - Runs the esbuild watcher
# ==========================================================================================================
esbuild:
<<: *default_app
container_name: turbo_boost-commands-esbuild
command: /bin/bash -c "npm run build:watch"
depends_on:
web:
condition: service_healthy
# ==========================================================================================================
# Tailwind - Runs the Tailwind watcher
# ==========================================================================================================
tailwind:
<<: *default_app
container_name: turbo_boost-commands-tailwind
working_dir: /app/test/dummy
command: bin/rails tailwindcss:watch
depends_on:
web:
condition: service_healthy