-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
37 lines (37 loc) · 925 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
services:
swarm-cronjob:
runtime: runc
labels:
traefik.enable: false
image: crazymax/swarm-cronjob
volumes:
- "/var/run/docker.sock:/var/run/docker.sock"
environment:
- "TZ=America/Sao_Paulo"
- "LOG_LEVEL=info"
- "LOG_JSON=false"
deploy:
placement:
constraints:
- node.role == manager
build-aapanel:
runtime: runc
labels:
traefik.enable: false
image: docker
command: >
/bin/sh /commands.sh
env_file:
- ./.env
volumes:
- './aapanel-ubuntu-22-04-sysbox:/aapanel-ubuntu-22-04-sysbox'
- "/var/run/docker.sock:/var/run/docker.sock"
- "./commands.sh:/commands.sh"
deploy:
mode: global
labels:
- "swarm.cronjob.enable=true"
- "swarm.cronjob.schedule=0 0 0 ? * FRI *"
- "swarm.cronjob.skip-running=false"
restart_policy:
condition: none