pocket-id-exporter/docker-compose.yml

85 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2024-11-02 09:30:54 +01:00
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
- LETSENCRYPT_EMAIL=admin@brothertec.eu
2024-12-13 01:01:27 +01:00
- DB_PROVIDER=postgres
- POSTGRES_CONNECTION_STRING=$POSTGRES_CONNECTION_STRING_ENV
depends_on:
- db
2024-11-02 09:30:54 +01:00
labels:
- "com.centurylinklabs.watchtower.enable=true"
networks:
- default
- proxy
- edge-tier
2024-12-13 01:01:27 +01:00
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"
2024-11-02 09:30:54 +01:00
pocket-id-exporter:
container_name: pocket-id-exporter
build:
context: go/.
args:
- GO111MODULE=off
volumes:
- "./data:/data"
#ports:
# - "3000:3000"
environment:
- TZ=Europe/Berlin
2024-12-13 01:01:27 +01:00
- DB_TYPE=postgres
- DB_CONNECTION=$DB_CONNECTION_ENV
#- DB_TYPE=sqlite3
#- DB_CONNECTION=./data/pocket-id.db
depends_on:
- db
2024-11-02 09:30:54 +01:00
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