-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
68 lines (63 loc) · 1.28 KB
/
compose.yml
File metadata and controls
68 lines (63 loc) · 1.28 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
services:
ledger:
build:
context: .
dockerfile: Dockerfile.dev
args:
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
container_name: ledger
command: bash script/start.sh
depends_on:
- ledger_db
ports:
- 3000:3000
volumes:
- .:/app
- gem_cache:/usr/local/bundle
env_file:
- .env
networks:
- ledger_net
ledger_css:
build:
context: .
dockerfile: Dockerfile.dev
args:
USER_ID: ${USER_ID:-1000}
GROUP_ID: ${GROUP_ID:-1000}
container_name: ledger_css
command: bundle exec rails tailwindcss:watch
stdin_open: true
tty: true
volumes:
- .:/app
- gem_cache:/usr/local/bundle
networks:
- ledger_net
ledger_db:
image: "postgres:13"
container_name: ledger_db
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${PG_USERNAME}
- POSTGRES_PASSWORD=${PG_PASSWORD}
networks:
- ledger_net
redis:
container_name: ledger_redis
image: "redis:latest"
command: redis-server
volumes:
- redis_data:/data
networks:
- ledger_net
volumes:
postgres_data:
gem_cache:
redis_data:
networks:
ledger_net: