-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
40 lines (39 loc) · 1.05 KB
/
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
38
39
40
version: "3.9"
services:
mineskin-api:
image: ghcr.io/mineskin/mineskin-api:latest
container_name: mineskin-api
environment:
FORCE_COLOR: 1
NODE_ENV: ${NODE_ENV}
DOTENV_KEY: ${DOTENV_KEY}
HOST_HOSTNAME: $HOSTNAME
NODE_HOSTNAME: '{{.Node.Hostname}}'
#network_mode: host
networks:
- host
volumes:
- /home/inventivetalent/api.mineskin.org/config.js:/opt/app/config.js
- /home/inventivetalent/api.mineskin.org/logs:/opt/app/logs
- type: bind
source: /home/inventivetalent/api.mineskin.org/.well-known
target: /opt/app/.well-known
bind:
create_host_path: true
healthcheck:
test: "wget --no-verbose --tries=1 --spider http://localhost:3017/health || exit 1"
interval: 5m
start_period: 1m
timeout: 3s
retries: 3
deploy:
replicas: 6
placement:
constraints: [node.labels.mineskin-api == true]
update_config:
parallelism: 1
delay: 10s
networks:
host:
name: host
external: true