elemes/podman-compose.yml

39 lines
899 B
YAML
Raw Normal View History

2026-01-02 06:18:48 +07:00
version: '3.8'
services:
2026-01-06 21:38:54 +07:00
elemes:
2026-01-02 06:18:48 +07:00
build: .
2026-01-06 21:38:54 +07:00
container_name: elemes
2026-01-02 06:18:48 +07:00
ports:
- "5000:5000"
volumes:
- ../content:/app/content
2026-01-02 06:18:48 +07:00
- ./static:/app/static
- ./templates:/app/templates
2026-01-04 18:16:58 +07:00
- ../tokens_siswa.csv:/app/tokens.csv
2026-01-06 21:38:54 +07:00
env_file:
- ../.env
command: gunicorn --config gunicorn.conf.py app:app
elemes-ts:
image: docker.io/tailscale/tailscale:latest
container_name: elemes-ts
hostname: ${ELEMES_HOST}
2026-01-02 06:18:48 +07:00
environment:
2026-01-06 21:38:54 +07:00
- TS_AUTHKEY=${TS_AUTHKEY}
- TS_SERVE_CONFIG=/config/sinau-c-tail.json
- TS_STATE_DIR=/var/lib/tailscale
- TS_USERSPACE=true
volumes:
- ./state:/var/lib/tailscale
- ../config:/config
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
networks:
main_network:
drive: bridge
network_mode: service:elemes-ts