proxitok/docker-compose.yml

65 lines
1.2 KiB
YAML
Raw Normal View History

2022-03-15 21:52:54 +00:00
version: '3'
services:
web:
container_name: proxitok-web
2023-06-12 13:20:42 +00:00
build: .
2022-03-15 21:52:54 +00:00
ports:
- 8080:80
environment:
- LATTE_CACHE=/cache
- API_CACHE=redis
- REDIS_HOST=proxitok-redis
- REDIS_PORT=6379
- API_SIGNER=remote
2022-05-22 10:52:56 +00:00
- API_SIGNER_URL=http://proxitok-signer:8080/signature
2022-03-15 21:52:54 +00:00
volumes:
- proxitok-cache:/cache
depends_on:
- redis
2022-05-22 10:52:56 +00:00
- signer
2023-03-19 02:10:24 +00:00
networks:
- proxitok
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
2022-03-15 21:52:54 +00:00
redis:
container_name: proxitok-redis
2022-05-22 10:52:56 +00:00
image: redis:7-alpine
2022-03-15 21:52:54 +00:00
command: redis-server --save 60 1 --loglevel warning
restart: unless-stopped
2023-03-19 02:10:24 +00: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 10:52:56 +00:00
signer:
container_name: proxitok-signer
image: ghcr.io/pablouser1/signtok:master
2023-03-19 02:10:24 +00:00
networks:
- proxitok
user: nobody
read_only: true
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
2022-03-15 21:52:54 +00:00
volumes:
proxitok-cache:
2023-03-19 02:10:24 +00:00
networks:
proxitok: