blob: 03826beee16218c714652ee692ad8ffaaa58c662 (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
################################################################################
## Copyright (C) 2020 Sebastian Francisco Colomar Bauza ##
## Copyright (C) 2020 Alejandro Colomar Andrés ##
## SPDX-License-Identifier: GPL-2.0-only ##
################################################################################
configs:
etc-nginx-conf-d-security-parameters-conf-www-config:
file: /run/configs/www/etc/nginx/conf.d/security-parameters.conf
etc-nginx-conf-d-server-www-config:
file: /run/configs/www/etc/nginx/conf.d/server.conf
networks:
alejandro-colomar:
services:
www:
configs:
-
mode: 0440
source: etc-nginx-conf-d-security-parameters-conf-www-config
target: /etc/nginx/conf.d/security-parameters.conf
-
mode: 0440
source: etc-nginx-conf-d-server-www-config
target: /etc/nginx/conf.d/server.conf
deploy:
mode: replicated
placement:
constraints:
- node.role == worker
replicas: 1
resources:
limits:
cpus: "0.5"
memory: "1g"
reservations:
cpus: "0.5"
memory: "1g"
restart_policy:
condition: any
healthcheck:
interval: 10s
retries: 3
start_period: 30s
test: curl -4s -o /dev/null -w '%{http_code}' http://localhost:8080
timeout: 1s
image: "docker.io/alejandrocolomar/www:0.48-rc1"
networks:
-
"alejandro-colomar"
ports:
- "31001:8080"
version: "3.8"
|