-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
90 lines (90 loc) · 2.11 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
networks:
development:
volumes:
db_data:
gem_cache:
node_modules:
services:
db:
image: postgres:16.3
container_name: shore_db
networks:
- development
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
volumes:
- db_data:/var/lib/postgresql/data/pgdata
web:
build:
context: .
dockerfile: Dockerfile.dev
networks:
- development
container_name: shore_app
stdin_open: true
tty: true
entrypoint: docker-entrypoint.sh
ports:
- "3000:3000"
environment:
- RAILS_ENV=development
- RACK_ENV=development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_HOST=db
- RAILS_SERVE_STATIC_FILES=false
- VITE_RUBY_HOST=vite
volumes:
- .:/var/app:cached
- gem_cache:/usr/local/bundle/gems
- node_modules:/var/app/node_modules
depends_on:
- db
command: bundle exec rails s -b 0.0.0.0 -p 3000
worker:
build:
context: .
dockerfile: Dockerfile.dev
networks:
- development
container_name: shore_worker
environment:
- RAILS_ENV=development
- RACK_ENV=development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_HOST=db
- RAILS_SERVE_STATIC_FILES=false
volumes:
- .:/var/app
- gem_cache:/usr/local/bundle/gems
- node_modules:/var/app/node_modules
depends_on:
- db
command: bundle exec rake solid_queue:start
vite:
build:
context: .
dockerfile: Dockerfile.dev
container_name: shore_vite
networks:
- development
environment:
- RAILS_ENV=development
- RACK_ENV=development
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_HOST=db
- RAILS_SERVE_STATIC_FILES=false
- VITE_RUBY_HOST=0.0.0.0
ports:
- "3036:3036"
volumes:
- .:/var/app:cached
- gem_cache:/usr/local/bundle/gems
- node_modules:/var/app/node_modules
depends_on:
- db
command: bundle exec vite dev