-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-stack.yml
40 lines (38 loc) · 998 Bytes
/
docker-stack.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
38
39
40
version: "3.7"
networks:
cryptocean-network:
driver: bridge
name: cryptocean-network
attachable: true
services:
cryptocean-cronium-tracker:
container_name: ${DOCKER_NAME:-cryptocean-cronium-tracker.latest}
image: ${DOCKER_IMAGE:-cryptocean-cronium-tracker:latest}
build:
context: .
dockerfile: Dockerfile
init: true
tty: true
stdin_open: true
networks:
- cryptocean-network
ports:
- ${TRACKER_PORT-1340:1340}
logging:
options:
max-size: 10M
max-file: "5"
volumes:
- ${TRACKER_PATH:-/opt/cryptocean/cryptocean-cronium-tracker/.neotrackerrc}:/opt/tracker/.neotrackerrc
# deploy:
# resources:
# limits:
# cpus: ${DOCKER_CPUS_LIMIT:-1}
# memory: ${DOCKER_MEMORY_LIMIT:-1024M}
restart: always
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:1340"]
interval: 30s
timeout: 30s
retries: 2
start_period: 15s