-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
48 lines (45 loc) · 1.03 KB
/
docker-compose.dev.yml
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
version: "3"
services:
uptime-kuma:
image: louislam/uptime-kuma:1
container_name: tobeit-uptime-kuma
volumes:
- ./uptime-kuma-data:/app/data
ports:
- 4001:3001
restart: always
depends_on:
- postgres
- pgbouncer
postgres:
container_name: tobeit-postgres
image: postgres:14.5-alpine
restart: always
env_file:
- .env
environment:
- POSTGRES_USER=${POSTGRES_USERNAME}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
ports:
- 5432:5432
volumes:
- ./pg-db:/var/lib/postgresql/data
pgbouncer:
container_name: tobeit-pgbouncer
image: edoburu/pgbouncer
restart: always
env_file:
- .env
environment:
- DB_USER=${POSTGRES_USERNAME}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DB_HOST=postgres
- DB_NAME=${POSTGRES_DB_NAME}
- POOL_MODE=transaction
- ADMIN_USERS=postgres,${POSTGRES_USERNAME}
ports:
- 6432:6432
volumes:
- ./pb-bouncer:/etc/pgbouncer
depends_on:
- postgres