-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.yml
76 lines (68 loc) · 2.31 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
version: "3.9"
networks:
primary:
volumes:
external:
node_modules:
x-default-env: &default_env
GEM_HOME: /mnt/external/bundle
PLAYWRIGHT_BROWSERS_PATH: 0
RAILS_ENV: development
RAILS_LOG_TO_STDOUT: true
RAILS_SERVE_STATIC_FILES: true
x-default-app: &default_app
build: .
image: hopsoft/turbo_boost-streams
tty: true
stdin_open: true
environment:
<<: *default_env
networks:
- primary
volumes:
- .:/app
- external:/mnt/external
- node_modules:/app/node_modules
services:
## ==========================================================================================================
## Shell
## ==========================================================================================================
#shell:
# <<: *default_app
# container_name: turbo_boost-streams-shell
# command: tail -f /dev/null
# ==========================================================================================================
# Web - Runs the test/dummy Rails app
# ==========================================================================================================
web:
<<: *default_app
container_name: turbo_boost-streams-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-streams-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-streams-tailwind
working_dir: /app/test/dummy
command: bin/rails tailwindcss:watch
depends_on:
web:
condition: service_healthy