version: '3.8' services: elemes: build: . container_name: elemes ports: - "5000:5000" # Expose port 5000 to the host volumes: - ../content:/app/content - ./static:/app/static - ./templates:/app/templates - ../tokens_siswa.csv:/app/tokens.csv - ../assets:/app/assets env_file: - ../.env # production # command: gunicorn --config gunicorn.conf.py app:app # debug command: python app.py elemes-ts: image: docker.io/tailscale/tailscale:latest container_name: elemes-ts hostname: ${ELEMES_HOST} environment: - 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 env_file: - ../.env networks: main_network: drive: bridge network_mode: service:elemes-ts