proxitok/docker-compose.yml

83 lines
1.8 KiB
YAML
Raw Normal View History

2022-03-15 17:52:54 -04:00
version: '3'
services:
web:
container_name: proxitok-web
2023-06-12 12:57:05 -04:00
image: ghcr.io/pablouser1/proxitok:master
2022-03-15 17:52:54 -04:00
environment:
- LATTE_CACHE=/cache
- API_CACHE=redis
- REDIS_HOST=proxitok-redis
- REDIS_PORT=6379
- API_SIGNER=remote
2022-05-22 06:52:56 -04:00
- API_SIGNER_URL=http://proxitok-signer:8080/signature
2023-09-01 08:26:18 -04:00
- APP_URL=https://proxitok.tams.tech
2022-03-15 17:52:54 -04:00
volumes:
- proxitok-cache:/cache
depends_on:
- redis
2022-05-22 06:52:56 -04:00
- signer
2023-03-18 22:10:24 -04:00
networks:
- proxitok
2023-09-01 08:26:18 -04:00
- web
2023-03-18 22:10:24 -04:00
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
2023-09-01 08:26:18 -04:00
labels:
# Traefik
traefik.docker.network: web
traefik.domain: tams.tech
traefik.enable: "true"
# Traefik v1
traefik.frontend.rule: Host:proxitok.tams.tech
# DNS discovery (not used)
tech.tams.dns_hosts: proxitok.tams.tech
# Traefik V2
traefik.http.routers.proxitok.rule: Host(`proxitok.tams.tech`)
traefik.http.routers.proxitok.tls: true
traefik.http.routers.proxitok.tls.certresolver: letsencrypt
2023-03-18 22:10:24 -04:00
2022-03-15 17:52:54 -04:00
redis:
container_name: proxitok-redis
2022-05-22 06:52:56 -04:00
image: redis:7-alpine
2022-03-15 17:52:54 -04:00
command: redis-server --save 60 1 --loglevel warning
restart: unless-stopped
2023-03-18 22:10:24 -04:00
networks:
- proxitok
user: nobody
read_only: true
security_opt:
- no-new-privileges:true
tmpfs:
- /data:size=10M,mode=0770,uid=65534,gid=65534,noexec,nosuid,nodev
cap_drop:
- ALL
2022-05-22 06:52:56 -04:00
signer:
container_name: proxitok-signer
image: ghcr.io/pablouser1/signtok:master
2023-07-26 16:21:06 -04:00
init: true
2023-03-18 22:10:24 -04:00
networks:
- proxitok
user: nobody
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
2022-03-15 17:52:54 -04:00
volumes:
proxitok-cache:
2023-03-18 22:10:24 -04:00
networks:
proxitok:
2023-09-01 08:26:18 -04:00
internal: true
web:
external: true