-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (50 loc) · 957 Bytes
/
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
version: '3'
services:
web:
build:
context: .
target: dev
ports:
- "3005:3000"
volumes:
- .:/ua
env_file:
- .envv/development/database
- .envv/development/web
# - .envv/development/aws
environment:
- RAILS_ENV=development
- VITE_RUBY_HOST=vite
depends_on:
- database
# command: sleep 300
vite:
build:
context: .
target: dev
entrypoint: ./docker-vite-entrypoint.sh
ports:
- 3036:3036
volumes:
- .:/ua
env_file:
- .envv/development/database
- .envv/development/web
environment:
- DEBUG='*vite*'
- RAILS_ENV=development
- VITE_RUBY_HOST=0.0.0.0
depends_on:
- database
redis:
image: redis
database:
image: postgres:13
ports:
- 5433:5432
env_file:
- .envv/development/database
volumes:
- db_data:/var/lib/postgresql/data
volumes:
db_data: