-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
51 lines (47 loc) · 1.37 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '3.8'
services:
db:
image: postgres:14
volumes:
- postgresdb-data:/var/lib/postgresql/data
restart: unless-stopped
environment:
- POSTGRES_DB=rpctools
- POSTGRES_USER=rpc
- POSTGRES_PASSWORD=abcd1234
- POSTGRES_HOST_AUTH_METHOD=trust
app:
build:
context: .
dockerfile: docker/app.Dockerfile
command: sleep infinity
volumes:
- .:/workspace
ports:
- "8888:8000"
environment:
- POSTGRES_DB=rpctools
- POSTGRES_USER=rpc
- POSTGRES_PASSWORD=abcd1234
- RPC_API_TOKEN=devtoken
# OIDC RP client credential for dev instance of datatracker (not secret for dev, will be for production)
- OIDC_RP_CLIENT_ID=502412
- OIDC_RP_CLIENT_SECRET=4046925638956f0d733cd96a5a89646815f0e989c878e9e09475b2f8
depends_on:
- db
extra_hosts:
- "host.docker.internal:host-gateway"
pgadmin:
image: dpage/pgadmin4:latest
restart: unless-stopped
environment:
- PGADMIN_DEFAULT_PASSWORD=dev
- PGADMIN_CONFIG_LOGIN_BANNER="Login with [email protected] / dev"
- PGADMIN_DISABLE_POSTFIX=True
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
- SCRIPT_NAME=/pgadmin
volumes:
- ./docker/configs/pgadmin-servers.json:/pgadmin4/servers.json
volumes:
postgresdb-data: