This repository was archived by the owner on Sep 14, 2025. It is now read-only.
forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
115 lines (109 loc) · 2.74 KB
/
docker-compose.yaml
File metadata and controls
115 lines (109 loc) · 2.74 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
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
name: crove
services:
base: &base
build:
context: .
dockerfile: ./docker/Dockerfile
args:
BUNDLE_WITHOUT: ''
EXECJS_RUNTIME: 'Node'
RAILS_ENV: 'development'
RAILS_SERVE_STATIC_FILES: 'false'
tty: true
stdin_open: true
image: crove:development
container_name: crove
env_file: .env
restart: always
rails:
<<: *base
build:
context: .
dockerfile: ./docker/dockerfiles/rails.Dockerfile
image: crove-rails:development
container_name: rails
working_dir: /app
volumes:
- ./:/app:delegated
- node_modules:/app/node_modules
- packs:/app/public/packs
- cache:/app/tmp/cache
- bundle:/usr/local/bundle
depends_on:
- vite
- sidekiq
ports:
- 3015:3000
env_file: .env
environment:
- VITE_DEV_SERVER_HOST=vite
- NODE_ENV=development
- RAILS_ENV=development
entrypoint: /app/docker/entrypoints/rails.sh
command: ["bundle", "exec", "rails", "server", "-b", "0.0.0.0", "-p", "3000"]
networks:
- default
- Gateway
restart: always
cloudflared:
image: cloudflare/cloudflared:latest
container_name: cloudflared
network_mode: host
environment:
- TUNNEL_TOKEN=eyJhIjoiMzM2OGZmOThhNGM5NTYxNjRiN2JiZGM4ZmI5NTAxNjMiLCJ0IjoiYzA5YTRiZjYtNjkzNC00NTkxLWIyOGEtZmI5Y2ZmMWM2ODEzIiwicyI6Ik1XSmpZalkzWVdVdE1qRTRPQzAwTVdWakxXRXlNVFV0TkRjME9HWTVaV1l3TWpVMyJ9
command: tunnel run
restart: always
sidekiq:
<<: *base
container_name: sidekiq
working_dir: /app
image: crove-rails:development
volumes:
- ./:/app:delegated
- node_modules:/app/node_modules
- packs:/app/public/packs
- cache:/app/tmp/cache
- bundle:/usr/local/bundle
environment:
- NODE_ENV=development
- RAILS_ENV=development
command: ["bundle", "exec", "sidekiq", "-C", "config/sidekiq.yml"]
networks:
- default
- Gateway
restart: always
vite:
<<: *base
container_name: vite
working_dir: /app
build:
context: .
dockerfile: ./docker/dockerfiles/vite.Dockerfile
image: crove-vite:development
volumes:
- ./:/app:delegated
- node_modules:/app/node_modules
- packs:/app/public/packs
- cache:/app/tmp/cache
- bundle:/usr/local/bundle
ports:
- "3036:3036" # Vite dev server
environment:
- NODE_ENV=development
- RAILS_ENV=development
- DANGEROUSLY_DISABLE_HOST_CHECK=true
- VITE_HOST=0.0.0.0
entrypoint: /app/docker/entrypoints/vite.sh
command: ["bin/vite", "dev"]
networks:
- default
- Gateway
restart: always
volumes:
packs:
node_modules:
cache:
bundle:
networks:
Gateway:
external: true