-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 798 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
32 lines (32 loc) · 798 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
version: '3'
services:
db:
image: postgres:14.2-alpine
container_name: blogapp-postgres-14.2
volumes:
- postgres_data:/var/lib/postgresql/data
command: "postgres -c 'max_connections=500'"
environment:
POSTGRES_DB: blogappdb
POSTGRES_USER: user_blog
POSTGRES_PASSWORD: TestCaseBlog
ports:
- "5433:5432"
blogapp-web:
build: .
command: ["sh", "-c", "rm -f /app/tmp/pids/server.pid && bundle exec rails s -b '0.0.0.0' && bundle exec rails tailwindcss:watch"]
environment:
DB_HOST: db
DB_NAME: blogappdb
DB_USERNAME: user_blog
DB_PASSWORD: TestCaseBlog
volumes:
- .:/app:cached
ports:
- "3000:3000"
depends_on:
- db
tty: true
stdin_open: true
volumes:
postgres_data: {}