-
Notifications
You must be signed in to change notification settings - Fork 85
/
docker-compose.yml
48 lines (45 loc) · 1.18 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
version: "3.8"
services:
relay:
build:
context: ../../
dockerfile: ./examples/basic/Dockerfile
environment:
PORT: 7447
POSTGRESQL_DATABASE: postgres://nostr:nostr@postgres:5432/nostr?sslmode=disable
depends_on:
postgres:
condition: service_healthy
ports:
- 2700:7447
command: "./examples/basic/relayer-basic"
postgres:
image: postgres
restart: always
environment:
POSTGRES_DB: nostr
POSTGRES_USER: nostr
POSTGRES_PASSWORD: nostr
POSTGRES_HOST_AUTH_METHOD: trust # allow all connections without a password. This is *not* recommended for prod
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "pg_isready -U nostr"] # database username here - nostr, should be changed if other user
interval: 10s
timeout: 5s
retries: 5
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
restart: unless-stopped
depends_on:
- postgres
ports:
- "5050:80"
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: nostr
volumes:
- pgadmin:/var/lib/pgadmin
volumes:
pgadmin: