-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-local.yaml
56 lines (54 loc) · 1.63 KB
/
docker-compose-local.yaml
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
# Lines left commented below are potentially useful for debugging when tests are failing
version: "3.9"
services:
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=password
ports:
- "127.0.0.1:6543:5432"
expose:
- "5432"
fill-pg:
build: .
command: >
/bin/sh -c "
echo Waiting for nodeos service start...;
while ! nc -z host.docker.internal 8080; do
sleep 1;
done;
fill-pg --fpg-create --fpg-drop --fill-connect-to=host.docker.internal:8080 --fpg-debug-mode
"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
- PGUSER=postgres
- PGPASSWORD=password
- PGHOST=host.docker.internal
- PGPORT=6543
restart: on-failure
depends_on:
- postgres
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:latest
entrypoint: >
/bin/sh -c "
mkdir -p /var/lib/pgadmin/storage/postgres_postgres.com;
chmod 700 /var/lib/pgadmin/storage/postgres_postgres.com;
cp -f /pgadmin4/pgpass /var/lib/pgadmin/storage/postgres_postgres.com/pgpass;
chmod 0600 /var/lib/pgadmin/storage/postgres_postgres.com/pgpass;
chown -R pgadmin:pgadmin /var/lib/pgadmin/storage/postgres_postgres.com;
/entrypoint.sh
"
environment:
- PGADMIN_DEFAULT_PASSWORD=password
- PGADMIN_CONFIG_SERVER_MODE=False
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
ports:
- "5050:80"
volumes:
- ./pg_admin_servers.json:/pgadmin4/servers.json
- ./pgpass.txt:/pgadmin4/pgpass
restart: always