infrastructure/ansible/roles/privatebin/files/docker-compose.yml
Jake Howard d5c7d94ac8
Run traefik as dockeruser, and without host networking
This required port forwarding, a docker proxy, and a docker network, but the end result should be much more secure!
2022-01-15 23:44:06 +00:00

22 lines
492 B
YAML

version: "2.3"
services:
privatebin:
image: privatebin/nginx-fpm-alpine:latest
environment:
- TZ={{ timezone }}
volumes:
- "{{ app_data_dir }}/privatebin/:/srv/data"
- "{{ app_data_dir }}/privatebin/conf.php:/srv/cfg/conf.php:ro"
restart: unless-stopped
labels:
- traefik.enable=true
- traefik.http.routers.privatebin.rule=Host(`bin.theorangeone.net`)
networks:
- default
- traefik
networks:
traefik:
external: true