Actualiser docker-compose.yml
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 9s
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 9s
This commit is contained in:
parent
ff30449e44
commit
106128df36
@ -1,44 +1,56 @@
|
|||||||
#### NETWORKS
|
#### NETWORKS
|
||||||
# networks:
|
networks:
|
||||||
# traefik_front_network:
|
traefik_front_network:
|
||||||
# external: true
|
external: true
|
||||||
# back_network_:
|
back_network_:
|
||||||
# driver: bridge
|
driver: bridge
|
||||||
# attachable: true
|
attachable: true
|
||||||
|
|
||||||
#### SERVICES
|
#### SERVICES
|
||||||
services:
|
services:
|
||||||
### hello_world
|
metabase:
|
||||||
hello_world:
|
image: metabase/metabase:latest
|
||||||
container_name: gitea-app
|
container_name: metabase
|
||||||
hostname: gitea-app
|
hostname: metabase
|
||||||
image: hello-world
|
volumes:
|
||||||
# environment:
|
- /dev/urandom:/dev/random:ro
|
||||||
restart: always
|
ports:
|
||||||
# networks:
|
- 3000:3000
|
||||||
# - back_network_gitea
|
environment:
|
||||||
# - traefik_front_network
|
MB_DB_TYPE: postgres
|
||||||
# volumes:
|
MB_DB_DBNAME: metabase
|
||||||
# labels:
|
MB_DB_PORT: 5432
|
||||||
# - "traefik.enable=true"
|
MB_DB_USER_FILE: /run/secrets/db_user
|
||||||
# - "traefik.docker.network=traefik_front_network"
|
MB_DB_PASS_FILE: /run/secrets/db_password
|
||||||
# HTTP
|
MB_DB_HOST: postgres
|
||||||
# - "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)"
|
networks:
|
||||||
# - "traefik.http.routers.hello-world-http.entrypoints=http"
|
- metanet1
|
||||||
# - "traefik.http.routers.hello-world-http.priority=49"
|
secrets:
|
||||||
# HTTPS
|
- db_password
|
||||||
# - "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)"
|
- db_user
|
||||||
# - "traefik.http.routers.hello-world-https.entrypoints=https"
|
healthcheck:
|
||||||
# - "traefik.http.routers.hello-world-https.tls=true"
|
test: curl --fail -I http://localhost:3000/api/health || exit 1
|
||||||
# - "traefik.http.routers.hello-world-https.priority=50"
|
interval: 15s
|
||||||
# - "traefik.http.routers.gitea.service=gitea-https-service"
|
timeout: 5s
|
||||||
# Middleware
|
retries: 5
|
||||||
# Service
|
postgres:
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000"
|
image: postgres:latest
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
|
container_name: postgres
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me"
|
hostname: postgres
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
|
environment:
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
|
POSTGRES_USER_FILE: /run/secrets/db_user
|
||||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
|
POSTGRES_DB: metabase
|
||||||
# - "traefik.tcp.services.gitea-ssh-service.loadbalancer.server.port=22"
|
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
||||||
# - "traefik.tcp.services.gitea-ssh-service.loadbalancer.server.tls=true"
|
networks:
|
||||||
|
- metanet1
|
||||||
|
secrets:
|
||||||
|
- db_password
|
||||||
|
- db_user
|
||||||
|
networks:
|
||||||
|
metanet1:
|
||||||
|
driver: bridge
|
||||||
|
secrets:
|
||||||
|
db_password:
|
||||||
|
file: db_password.txt
|
||||||
|
db_user:
|
||||||
|
file: db_user.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user