24 lines
592 B
YAML
24 lines
592 B
YAML
services:
|
|
erika:
|
|
build: .
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
|
|
nginx:
|
|
image: nginx:alpine
|
|
container_name: erika-nginx
|
|
network_mode: host
|
|
volumes:
|
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
|
depends_on:
|
|
- erika
|
|
restart: unless-stopped
|
|
|
|
cron:
|
|
image: curlimages/curl
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
env_file:
|
|
- .env
|
|
command: /bin/sh -c "while true; do echo \"[$$(date)] Triggering TikTok cron...\"; curl -s \"http://localhost:3000/api/cron/tiktok?secret=$${CRON_SECRET}\"; echo \"\"; sleep 300; done"
|