-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (50 loc) · 1.05 KB
/
Copy pathdocker-compose.yml
File metadata and controls
54 lines (50 loc) · 1.05 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
services:
db:
image: postgres:16
hostname: db
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: historyforge
ports:
- "127.0.0.1:5433:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
networks:
- app-network
web:
build:
context: .
dockerfile: Dockerfile.dev
hostname: web
depends_on:
db:
condition: service_healthy
ports:
- "127.0.0.1:3000:3000"
volumes:
- .:/app
- bundle-cache:/usr/local/bundle
- node-modules:/app/node_modules
- yarn-cache:/usr/local/share/.cache/yarn
environment:
- RAILS_ENV=development
- NODE_ENV=development
- DB_HOST=db
command: sleep infinity
networks:
- app-network
volumes:
postgres-data:
bundle-cache:
node-modules:
yarn-cache:
networks:
app-network:
driver: bridge