-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
38 lines (33 loc) · 902 Bytes
/
docker-compose.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
services:
timescale:
image: timescale/timescaledb:latest-pg16
container_name: timescale
environment:
- POSTGRES_PASSWORD=postgres
ports:
- "5432:5432"
volumes:
- timescale-data:/var/lib/postgresql/data
restart: always
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
- PGADMIN_DEFAULT_EMAIL=admin@example.com
- PGADMIN_DEFAULT_PASSWORD=admin
ports:
- "5050:80"
volumes:
- ./docker/pgadmin/pgpass:/pgadmin4/pgpass
- ./docker/pgadmin/servers.json:/pgadmin4/servers.json
entrypoint: >
/bin/sh -c "
mkdir -m 700 -p /var/lib/pgadmin/storage/admin_example.com;
cp /pgadmin4/pgpass /var/lib/pgadmin/storage/admin_example.com/;
chmod 600 /var/lib/pgadmin/storage/admin_example.com/pgpass;
/entrypoint.sh
"
depends_on:
- timescale
volumes:
timescale-data: