-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcompose.yaml
More file actions
33 lines (31 loc) · 899 Bytes
/
compose.yaml
File metadata and controls
33 lines (31 loc) · 899 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
services:
db:
image: postgres:16-alpine
platform: linux/x86_64
environment:
POSTGRES_USER: data_dictionary
POSTGRES_PASSWORD: data_dictionary
POSTGRES_DB: data_dictionary_production
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U data_dictionary -d data_dictionary_production"]
interval: 5s
timeout: 5s
retries: 10
web:
build: .
platform: linux/x86_64
depends_on:
db:
condition: service_healthy
environment:
DATABASE_URL: postgres://data_dictionary:data_dictionary@db:5432/data_dictionary_production
RAILS_ENV: production
RAILS_LOG_TO_STDOUT: "1"
RAILS_SERVE_STATIC_FILES: "1"
SECRET_KEY_BASE: ${SECRET_KEY_BASE:-change_me_please_generate_with_rails_secret}
ports:
- "3000:3000"
volumes:
postgres_data: