-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
88 lines (82 loc) · 2.2 KB
/
docker-compose.dev.yml
File metadata and controls
88 lines (82 loc) · 2.2 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
name: text.ur-dev
services:
postgres:
image: postgres:16
container_name: text.ur-dev-postgres
restart: always
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- "${POSTGRES_PORT}:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB} || exit 1"]
interval: 10s
timeout: 10s
retries: 5
start_period: 30s
pgbouncer:
image: edoburu/pgbouncer:v1.24.1-p0
container_name: text.ur-dev-pgbouncer
restart: always
environment:
DB_USER: ${POSTGRES_USER}
DB_PASSWORD: ${POSTGRES_PASSWORD}
DB_HOST: postgres
DB_NAME: ${POSTGRES_DB}
AUTH_TYPE: scram-sha-256
POOL_MODE: transaction
ADMIN_USERS: postgres,dbuser
depends_on:
- postgres
ports:
- "${PGBOUNCER_PORT}:5432"
healthcheck:
test: ['CMD', 'pg_isready', '-h', 'postgres']
redis:
image: redis:8
container_name: text.ur-dev-redis
restart: always
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
command: ["redis-server", "--requirepass", "${REDIS_PASSWORD}"]
ports:
- "${REDIS_PORT}:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
redis-commander:
image: rediscommander/redis-commander:latest
container_name: text.ur-dev-redis-commander
restart: always
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASSWORD=${REDIS_PASSWORD}
ports:
- "${REDIS_COMMANDER_PORT}:8081"
depends_on:
- redis
# Only for development to mock actual emails
mailhog:
image: mailhog/mailhog:v1.0.1
container_name: text.ur-dev-mailhog
restart: always
ports:
- "${SMTP_PORT}:1025" # SMTP port
- "${MAILHOG_PORT}:8025" # Web UI
environment:
MH_UI_BIND_ADDR: "0.0.0.0:8025"
MH_API_BIND_ADDR: "0.0.0.0:8025"
MH_SMTP_BIND_ADDR: "0.0.0.0:1025"
volumes:
postgres_data:
redis_data: