-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (36 loc) · 926 Bytes
/
docker-compose.yml
File metadata and controls
38 lines (36 loc) · 926 Bytes
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
services:
web:
build:
context: .
dockerfile: Dockerfile.dev
ports:
- "3000:3000"
- "3036:3036"
volumes:
- .:/app
- bundle_cache:/usr/local/bundle
- node_modules:/app/node_modules
environment:
- RAILS_ENV=development
- DATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_development
- POSTGRES_HOST=db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=secureorpheus123
- TEST_DATABASE_URL=postgres://postgres:secureorpheus123@db:5432/app_test
depends_on:
- db
command: ["sleep", "infinity"]
db:
image: postgres:16
volumes:
- harbor_postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=secureorpheus123
- POSTGRES_USER=postgres
- POSTGRES_DB=app_development
ports:
- "5432:5432"
volumes:
harbor_postgres_data:
bundle_cache:
node_modules: