-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
32 lines (32 loc) · 824 Bytes
/
docker-compose.yml
File metadata and controls
32 lines (32 loc) · 824 Bytes
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
version: '3'
services:
at_server:
labels:
- autoheal=true
- at_server=true
build:
context: .
args:
- ACTIVETICK_USER=${ACTIVETICK_USER}
- ACTIVETICK_API_KEY=${ACTIVETICK_API_KEY}
- ACTIVETICK_PASSWORD=${ACTIVETICK_PASSWORD}
- ACTIVETICK_PORT=${ACTIVETICK_PORT}
ports:
- ${ACTIVETICK_PORT}:${ACTIVETICK_PORT}
stdin_open: true
tty: true
restart: on-failure
healthcheck:
test: [ 'CMD', '/scripts/healthcheck.sh' ]
interval: 10s
timeout: 15s
retries: 2
at_healthcheck:
image: willfarrell/autoheal
environment:
- AUTOHEAL_CONTAINER_LABEL=at_server
- AUTOHEAL_START_PERIOD=45
- AUTOHEAL_INTERVAL=15
volumes:
- /var/run/docker.sock:/var/run/docker.sock
command: "autoheal"