2023-08-18 23:43:31 +02:00
|
|
|
---
|
|
|
|
|
2023-08-20 01:36:37 +02:00
|
|
|
locale:
|
|
|
|
# Timezone to set inside containers
|
|
|
|
tz: Europe/Paris
|
2023-09-01 16:32:48 +02:00
|
|
|
lang: fr_FR.utf8
|
2023-08-18 23:43:31 +02:00
|
|
|
|
2023-08-20 13:21:40 +02:00
|
|
|
vault:
|
|
|
|
# A prefix for all vault mount points. Usefull if you have different environnements
|
|
|
|
# This is an alternative to using vault namespaces as Nomad Community doesn't support it
|
|
|
|
prefix: ""
|
2023-09-16 22:48:30 +02:00
|
|
|
# Configuration for new PKI
|
2023-09-16 19:06:44 +02:00
|
|
|
pki:
|
|
|
|
organization: Ehtrace
|
2023-09-16 22:48:30 +02:00
|
|
|
ou: Internal PKI
|
|
|
|
country: FR
|
|
|
|
locality: Pessac
|
|
|
|
ttl: 131400h
|
|
|
|
key_bits: 4096
|
|
|
|
key_type: rsa
|
2023-08-27 22:20:56 +02:00
|
|
|
|
2023-08-20 01:36:37 +02:00
|
|
|
nomad:
|
|
|
|
# List of datacenters jobs will be deployed to
|
|
|
|
datacenters:
|
|
|
|
- dc1
|
2023-09-16 19:06:44 +02:00
|
|
|
|
2023-10-08 16:04:57 +02:00
|
|
|
# Default task driver
|
|
|
|
driver: docker
|
|
|
|
|
2023-09-16 19:06:44 +02:00
|
|
|
consul:
|
|
|
|
# Domain name used by consul (to lookup services by DNS name)
|
|
|
|
domain: consul
|
|
|
|
|
|
|
|
# A prefix for consul KV store. Same as for vault prefix
|
|
|
|
prefix: ""
|
|
|
|
|
2023-10-07 22:47:22 +02:00
|
|
|
# A suffix to add to service names. Alternative to Consul namespaces as community Consul
|
|
|
|
# doesn't support them
|
|
|
|
# You can set it for example like this
|
|
|
|
# suffix: "-qa"
|
|
|
|
# And a postgres service for example will be registered on consul as postgres-qa
|
|
|
|
# All the policies (vault, consul and nomad) will also be suffixed so they won't clash between
|
|
|
|
# your env
|
|
|
|
suffix: ""
|
|
|
|
|
2023-09-16 19:06:44 +02:00
|
|
|
# Consul connect config
|
2023-08-27 22:20:56 +02:00
|
|
|
connect:
|
|
|
|
upstreams: []
|
|
|
|
resources:
|
|
|
|
cpu: 50
|
|
|
|
memory: 64
|
2023-08-20 01:36:37 +02:00
|
|
|
|
2023-08-27 22:20:56 +02:00
|
|
|
# Traefik settings
|
|
|
|
traefik:
|
|
|
|
# This will be both the service name and the prefix used in tags
|
|
|
|
instance: traefik
|
|
|
|
# Defaults list of entrypoints to use
|
|
|
|
entrypoints:
|
|
|
|
- https
|
|
|
|
# Default middlewares to attach
|
2023-08-28 13:35:25 +02:00
|
|
|
base_middlewares:
|
2023-08-28 13:23:48 +02:00
|
|
|
- rate-limit-std@file
|
|
|
|
- inflight-std@file
|
2023-08-27 22:20:56 +02:00
|
|
|
- security-headers@file
|
|
|
|
- forward-headers@file
|
|
|
|
- hsts@file
|
|
|
|
- compression@file
|
2023-08-28 13:52:44 +02:00
|
|
|
- csp-relaxed@file
|
2023-08-28 13:35:25 +02:00
|
|
|
middlewares: []
|
2023-08-27 22:20:56 +02:00
|
|
|
|
2023-10-07 22:47:22 +02:00
|
|
|
# Default env vars for all your tasks
|
2023-08-20 01:36:37 +02:00
|
|
|
env:
|
2023-10-07 22:47:22 +02:00
|
|
|
TZ: "[[ .locale.tz ]]"
|
|
|
|
LANG: "[[ .locale.lang ]]"
|
2023-08-20 01:36:37 +02:00
|
|
|
|
|
|
|
proxy:
|
|
|
|
# A list of IP/hostname for which requests won't go through a (potentially) defined proxy
|
|
|
|
no_proxy:
|
|
|
|
- '*.consul'
|
|
|
|
- localhost
|
2023-08-27 22:20:56 +02:00
|
|
|
- 127.*
|
2023-10-07 22:47:22 +02:00
|
|
|
# Address of the proxy
|
2023-08-29 23:47:21 +02:00
|
|
|
# address: http://localhost:3128
|
2023-08-19 18:06:56 +02:00
|
|
|
|
|
|
|
# The name of a service providing SMTP capabilitites through the service mesh
|
|
|
|
# Can be used to easily switch from a mailpit to a real smtp relay for example
|
2023-08-20 01:36:37 +02:00
|
|
|
mail:
|
|
|
|
# The name of a service providing SMTP capabilitites through the service mesh
|
|
|
|
# Can be used to easily switch from a mailpit to a real smtp relay for example
|
|
|
|
smtp_service_name: smtp
|
2023-08-19 18:06:56 +02:00
|
|
|
|
2023-08-21 10:30:20 +02:00
|
|
|
prometheus:
|
|
|
|
# Controls if prometheus metrics should be enabled on all tasks supporting it
|
|
|
|
enabled: False
|
2023-08-22 00:11:28 +02:00
|
|
|
|
2023-08-26 13:50:46 +02:00
|
|
|
docker:
|
|
|
|
# Your repo where locally built images will be pushed
|
|
|
|
repo: danielberteaud/
|
2023-08-28 23:56:33 +02:00
|
|
|
maintainer: Daniel Berteaud <dbd@ehtrace.com>
|
2023-08-26 13:50:46 +02:00
|
|
|
# Common base images
|
|
|
|
base_images:
|
|
|
|
# wait for services to be online, allow configuring service dependencies
|
2023-08-28 23:56:33 +02:00
|
|
|
wait_for:
|
2023-10-12 14:03:23 +02:00
|
|
|
image: wait-for:23.10-1
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-08-29 00:22:16 +02:00
|
|
|
# AlmaLinux 8
|
2023-08-28 23:56:33 +02:00
|
|
|
alma8:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: alma:8.23.10-1
|
2023-08-29 13:57:28 +02:00
|
|
|
build_args:
|
2023-08-28 23:56:33 +02:00
|
|
|
ALMA: 8
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-08-29 00:22:16 +02:00
|
|
|
# AlmaLinux 9
|
|
|
|
alma9:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: alma:9.23.10-1
|
2023-09-26 14:32:18 +02:00
|
|
|
build_args:
|
|
|
|
ALMA: 9
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-08-29 13:57:28 +02:00
|
|
|
# Latest alpine
|
2023-08-28 23:56:33 +02:00
|
|
|
alpine:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: alpine:23.10-1
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-08-29 13:57:28 +02:00
|
|
|
# Alpine with Java8 (temurin)
|
2023-08-28 23:56:33 +02:00
|
|
|
java8:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: java:8.23.10-1
|
2023-08-29 13:57:28 +02:00
|
|
|
build_args:
|
2023-08-28 23:56:33 +02:00
|
|
|
JAVA_VERSION: 8
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-08-29 13:57:28 +02:00
|
|
|
# Alpine with Java11 (temurin)
|
2023-08-28 23:56:33 +02:00
|
|
|
java11:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: java:11.23.10-1
|
2023-08-29 13:57:28 +02:00
|
|
|
build_args:
|
2023-08-28 23:56:33 +02:00
|
|
|
JAVA_VERSION: 11
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-08-29 13:57:28 +02:00
|
|
|
# Alpine with Java17 (temurin)
|
2023-08-28 23:56:33 +02:00
|
|
|
java17:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: java:17.23.10-1
|
2023-08-29 13:57:28 +02:00
|
|
|
build_args:
|
2023-08-28 23:56:33 +02:00
|
|
|
JAVA_VERSION: 17
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-09-18 09:44:18 +02:00
|
|
|
# Postgres
|
|
|
|
postgres15:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: postgres:15.23.10-1
|
2023-09-18 09:44:18 +02:00
|
|
|
build_args:
|
|
|
|
POSTGRES_VERSION: 15
|
2023-10-18 12:15:11 +02:00
|
|
|
|
2023-10-26 22:44:38 +02:00
|
|
|
# Mariadb client
|
2023-10-26 22:51:30 +02:00
|
|
|
mariadb_client:
|
2023-10-26 23:12:37 +02:00
|
|
|
image: mariadb-client:23.10-2
|
2023-10-26 22:44:38 +02:00
|
|
|
|
2023-10-18 12:15:11 +02:00
|
|
|
# MongoDB
|
|
|
|
mongo50:
|
2023-10-26 11:20:36 +02:00
|
|
|
image: mongo:5.0.23.10-2
|
2023-10-18 12:15:11 +02:00
|
|
|
build_args:
|
|
|
|
MONGO_MAJOR: "5.0"
|