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:
|
||||
# traefik_front_network:
|
||||
# external: true
|
||||
# back_network_:
|
||||
# driver: bridge
|
||||
# attachable: true
|
||||
networks:
|
||||
traefik_front_network:
|
||||
external: true
|
||||
back_network_:
|
||||
driver: bridge
|
||||
attachable: true
|
||||
|
||||
#### SERVICES
|
||||
services:
|
||||
### hello_world
|
||||
hello_world:
|
||||
container_name: gitea-app
|
||||
hostname: gitea-app
|
||||
image: hello-world
|
||||
# environment:
|
||||
restart: always
|
||||
# networks:
|
||||
# - back_network_gitea
|
||||
# - traefik_front_network
|
||||
# volumes:
|
||||
# labels:
|
||||
# - "traefik.enable=true"
|
||||
# - "traefik.docker.network=traefik_front_network"
|
||||
# HTTP
|
||||
# - "traefik.http.routers.hello-world-http.rule=Host(`hello-world.tips-of-mine.com`)"
|
||||
# - "traefik.http.routers.hello-world-http.entrypoints=http"
|
||||
# - "traefik.http.routers.hello-world-http.priority=49"
|
||||
# HTTPS
|
||||
# - "traefik.http.routers.hello-world-https.rule=Host(`hello-world.tips-of-mine.com`)"
|
||||
# - "traefik.http.routers.hello-world-https.entrypoints=https"
|
||||
# - "traefik.http.routers.hello-world-https.tls=true"
|
||||
# - "traefik.http.routers.hello-world-https.priority=50"
|
||||
# - "traefik.http.routers.gitea.service=gitea-https-service"
|
||||
# Middleware
|
||||
# Service
|
||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.port=3000"
|
||||
# - "traefik.http.services.gitea-https-service.loadbalancer.server.scheme=https"
|
||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.hostname=gitea.traefik.me"
|
||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.method=foobar"
|
||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.timeout=10"
|
||||
# - "traefik.http.services.gitea-https-service.loadbalancer.healthcheck.interval=30"
|
||||
# - "traefik.tcp.services.gitea-ssh-service.loadbalancer.server.port=22"
|
||||
# - "traefik.tcp.services.gitea-ssh-service.loadbalancer.server.tls=true"
|
||||
metabase:
|
||||
image: metabase/metabase:latest
|
||||
container_name: metabase
|
||||
hostname: metabase
|
||||
volumes:
|
||||
- /dev/urandom:/dev/random:ro
|
||||
ports:
|
||||
- 3000:3000
|
||||
environment:
|
||||
MB_DB_TYPE: postgres
|
||||
MB_DB_DBNAME: metabase
|
||||
MB_DB_PORT: 5432
|
||||
MB_DB_USER_FILE: /run/secrets/db_user
|
||||
MB_DB_PASS_FILE: /run/secrets/db_password
|
||||
MB_DB_HOST: postgres
|
||||
networks:
|
||||
- metanet1
|
||||
secrets:
|
||||
- db_password
|
||||
- db_user
|
||||
healthcheck:
|
||||
test: curl --fail -I http://localhost:3000/api/health || exit 1
|
||||
interval: 15s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
postgres:
|
||||
image: postgres:latest
|
||||
container_name: postgres
|
||||
hostname: postgres
|
||||
environment:
|
||||
POSTGRES_USER_FILE: /run/secrets/db_user
|
||||
POSTGRES_DB: metabase
|
||||
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
|
||||
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