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:
|
2026-01-04 13:27:06 +07:00
|
|
|
- ../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
|
2026-03-26 13:52:59 +07:00
|
|
|
command: gunicorn --config gunicorn.conf.py "app:create_app()"
|
2026-01-12 12:03:23 +07:00
|
|
|
|
|
|
|
|
# debug
|
2026-03-26 13:52:59 +07:00
|
|
|
# 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
|
2026-03-26 13:52:59 +07:00
|
|
|
# ports:
|
|
|
|
|
# - 3000:3000
|
2026-03-25 09:39:51 +07:00
|
|
|
environment:
|
|
|
|
|
- ORIGIN=http://localhost:3000
|
2026-03-26 13:52:59 +07:00
|
|
|
- API_BACKEND=http://elemes:5000
|
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:
|
2026-01-11 20:22:30 +07:00
|
|
|
- ../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
|
2026-01-11 20:22:30 +07:00
|
|
|
env_file:
|
|
|
|
|
- ../.env
|
2026-01-06 21:38:54 +07:00
|
|
|
|
|
|
|
|
networks:
|
2026-03-26 13:52:59 +07:00
|
|
|
main_network:
|
|
|
|
|
drive: bridge
|
|
|
|
|
network_mode: service:elemes-ts
|