-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcompose.dev.yml
More file actions
91 lines (87 loc) · 2.64 KB
/
compose.dev.yml
File metadata and controls
91 lines (87 loc) · 2.64 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
services:
db:
image: docker.io/library/postgres:18
env_file:
- .env.development
volumes:
- db-data:/var/lib/postgresql
- ./deploy/postgres/init/01_pg_stat_statements.sql:/docker-entrypoint-initdb.d/01_pg_stat_statements.sql:ro,z
ports:
- "15432:5432"
command:
[
"postgres",
"-c", "shared_preload_libraries=pg_stat_statements",
"-c", "pg_stat_statements.max=10000",
"-c", "pg_stat_statements.track=all"
]
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER:-hackorum} -d ${POSTGRES_DB:-hackorum_development} -h /var/run/postgresql"]
interval: 10s
timeout: 5s
retries: 5
web:
build:
context: .
dockerfile: Containerfile.dev
env_file:
- .env.development
environment:
RAILS_ENV: ${RAILS_ENV:-development}
NODE_ENV: ${NODE_ENV:-development}
HOST: 0.0.0.0
PORT: ${PORT:-3000}
DATABASE_URL: postgresql://${POSTGRES_USER:-hackorum}:${POSTGRES_PASSWORD:-hackorum}@db:5432/${POSTGRES_DB:-hackorum_development}
PGHOST: db
PGPORT: 5432
PGUSER: ${POSTGRES_USER:-hackorum}
PGPASSWORD: ${POSTGRES_PASSWORD:-hackorum}
PGDATABASE: ${POSTGRES_DB:-hackorum_development}
SOLID_QUEUE_IN_PUMA: "1"
FORCE_SSL: ${FORCE_SSL:-false}
volumes:
- .:/app:z
- bundle:/usr/local/bundle
- node_modules:/app/node_modules
ports:
- "${PORT:-3000}:${PORT:-3000}"
depends_on:
db:
condition: service_healthy
entrypoint: ["./bin/container-entrypoint"]
command: ["./bin/dev"]
imap_worker:
profiles: ["imap"]
build:
context: .
dockerfile: Containerfile.dev
env_file:
- .env.development
command: ["bundle", "exec", "ruby", "script/imap_idle.rb"]
environment:
RAILS_ENV: ${RAILS_ENV:-development}
DATABASE_URL: postgresql://${POSTGRES_USER:-hackorum}:${POSTGRES_PASSWORD:-hackorum}@db:5432/${POSTGRES_DB:-hackorum_development}
PGHOST: db
PGPORT: 5432
PGUSER: ${POSTGRES_USER:-hackorum}
PGPASSWORD: ${POSTGRES_PASSWORD:-hackorum}
PGDATABASE: ${POSTGRES_DB:-hackorum_development}
volumes:
- .:/app:z
- bundle:/usr/local/bundle
depends_on:
db:
condition: service_healthy
psql:
profiles: ["tools"]
image: docker.io/library/postgres:18
entrypoint: ["psql", "postgresql://${POSTGRES_USER:-hackorum}:${POSTGRES_PASSWORD:-hackorum}@db:5432/${POSTGRES_DB:-hackorum_development}"]
env_file:
- .env.development
depends_on:
db:
condition: service_healthy
volumes:
db-data:
bundle:
node_modules: