-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (74 loc) · 1.74 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
services:
pocketid:
image: stonith404/pocket-id:latest
container_name: pocket-id
restart: unless-stopped
env_file: .env
volumes:
- "./data:/app/backend/data"
environment:
- TRUST_PROXY=true # Set to true if a reverse proxy is in front of the container
- VIRTUAL_HOST=pocket-id.brothertec.eu
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=pocket-id.brothertec.eu
- DB_PROVIDER=postgres
- POSTGRES_CONNECTION_STRING=$POSTGRES_CONNECTION_STRING_ENV
depends_on:
- db
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
- default
- proxy
- edge-tier
db:
image: postgres:17
environment:
POSTGRES_USER: $POSTGRES_USER_ENV
POSTGRES_PASSWORD: $POSTGRES_PASSWORD_ENV
POSTGRES_DB: $POSTGRES_DB_ENV
volumes:
- ./postgres_data:/var/lib/postgresql/data
restart: always
networks:
default:
dns:
ipv4_address: 172.28.0.123
ports:
- "5432:5432"
labels:
- "com.centurylinklabs.watchtower.enable=true"
pocket-id-exporter:
container_name: pocket-id-exporter
build:
context: go/.
args:
- GO111MODULE=off
volumes:
- "./data:/data"
#ports:
# - "3000:3000"
environment:
- TZ=Europe/Berlin
- DB_TYPE=postgres
- DB_CONNECTION=$DB_CONNECTION_ENV
#- DB_TYPE=sqlite3
#- DB_CONNECTION=./data/pocket-id.db
depends_on:
- db
restart: always
networks:
default:
dns:
ipv4_address: 172.28.0.93
networks:
dns:
name: dns
external: true
proxy:
name: nginx-proxy
external: true
edge-tier:
name: edge
external: true