24 lines
544 B
YAML
24 lines
544 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 curl -s 'http://localhost:3000/api/cron/tiktok?secret=$${CRON_SECRET}' > /dev/null; sleep 300; done"
|