elemes/podman-compose.yml

60 lines
1.3 KiB
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
volumes:
- ../content:/app/content
2026-01-04 18:16:58 +07:00
- ../tokens_siswa.csv:/app/tokens.csv
2026-01-12 12:03:23 +07:00
- ../assets:/app/assets
2026-01-06 21:38:54 +07:00
env_file:
- ../.env
2026-01-12 12:03:23 +07:00
# production
command: gunicorn --config gunicorn.conf.py "app:create_app()"
2026-01-12 12:03:23 +07:00
# debug
# command: python app.py
2026-01-12 12:03:23 +07:00
2026-03-25 09:39:51 +07:00
elemes-frontend:
build: ./frontend
container_name: elemes-frontend
# ports:
# - 3000:3000
2026-03-25 09:39:51 +07:00
environment:
- ORIGIN=http://localhost:3000
- API_BACKEND=http://elemes:5000
- PUBLIC_APP_BAR_TITLE=${APP_BAR_TITLE}
- PUBLIC_COPYRIGHT_TEXT=${COPYRIGHT_TEXT}
- PUBLIC_PAGE_TITLE_SUFFIX=${PAGE_TITLE_SUFFIX}
2026-03-25 09:39:51 +07:00
depends_on:
- elemes
2026-01-06 21:38:54 +07:00
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
2026-01-06 21:42:45 +07:00
- ./config:/config
2026-01-06 21:38:54 +07:00
- /dev/net/tun:/dev/net/tun
cap_add:
- net_admin
- sys_module
restart: unless-stopped
2026-03-25 09:39:51 +07:00
depends_on:
- elemes-frontend
env_file:
- ../.env
2026-01-06 21:38:54 +07:00
networks:
main_network:
drive: bridge
network_mode: service:elemes-ts