-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (49 loc) · 1.33 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
52
version: '3.1'
services:
caddy:
container_name: caddy
image: caddy:2-alpine
restart: unless-stopped
environment:
- PGWEB_ADDRESS=foo.example.org
- PGWEB_BASICAUTH_USER=admin
# create password hash and replace '$' with '$$' to be used within docker-compose.yml
# caddy hash-password --plaintext test | sed 's/\$/\$\$/g'
- PGWEB_BASICAUTH_PASSWORD=$$2a$$14$$WICUKEnffdAuMYMaSpbs1.iiBQ0blWcxJmtvsOqOL3C7Qc01VBTIG
ports:
- "443:443"
- "80:80"
links:
- pgweb:pgweb
depends_on:
- pgweb
volumes:
- caddy-data:/data
- $PWD/Caddyfile:/etc/caddy/Caddyfile
pgweb:
container_name: pgweb
image: sosedoff/pgweb
restart: unless-stopped
links:
- postgis:postgis
environment:
- PGWEB_LOCK_SESSION=1
- PGWEB_DATABASE_URL=postgres://postgres:c64ccUDl52S2n1Xbp70qq6HNxQ4@postgis:5432/workspace?sslmode=disable
depends_on:
- postgis
postgis:
container_name: postgis
image: postgis/postgis:15-3.3
restart: unless-stopped
shm_size: 1g
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=c64ccUDl52S2n1Xbp70qq6HNxQ4
- POSTGRES_DB=workspace
volumes:
- /data/db:/var/lib/postgresql/data
- /data/exchange:/exchange
ports:
- "5432:5432"
volumes:
caddy-data: