docker-compose 相关问题

Compose是一个使用Docker定义和运行复杂应用程序的工具。使用Compose,您可以在一个文件中定义一个多容器应用程序,然后在一个命令中启动您的应用程序,该命令执行所有需要完成的操作以使其运行。

如何避免使用PHP Artisan Octane:重新加载

从事我的整个环境,使用Docker进行了容器。都将不胜感激。

回答 1 投票 0

为在Directus

这是Docker-Compose文件:

回答 0 投票 0

我是Authelia,Traefik和Aut Docker组成的新手,并尝试将这些应用程序配置为使用自签名认证(目前)运行(目前)。

--- version: '3' services: traefik: image: traefik container_name: traefik volumes: - /working_dir/traefik:/etc/traefik - /var/run/docker.sock:/var/run/docker.sock labels: - 'traefik.enable=true' - 'traefik.http.routers.api.rule=Host(`traefik.example.com`)' - 'traefik.http.routers.api.entrypoints=https' - 'traefik.http.routers.api.service=api@internal' - 'traefik.http.routers.api.tls=true' - 'traefik.http.routers.api.tls.options=default' - 'traefik.http.routers.api.middlewares=authelia@docker' command: - '--api' - '--log=true' - '--log.level=DEBUG' - '--providers.docker=true' - '--providers.docker.exposedbydefault=false' - '--providers.file.filename=/etc/traefik/certificates.yml' - '--entrypoints.http=true' - '--entrypoints.http.address=:80' - '--entrypoints.http.http.redirections.entrypoint.to=https' - '--entrypoints.http.http.redirections.entrypoint.scheme=https' - '--entrypoints.https=true' - '--entrypoints.https.address=:443' ports: - 8080:80 # Web - 1443:443 # https authelia: image: authelia/authelia container_name: authelia volumes: - /working_dir/authelia:/config labels: - 'traefik.enable=true' - 'traefik.http.routers.authelia.rule=Host(`authelia.example.com`)' - 'traefik.http.routers.authelia.entrypoints=https' - 'traefik.http.routers.authelia.tls=true' - 'traefik.http.routers.authelia.tls.options=default' - 'traefik.http.middlewares.authelia.forwardauth.address=http://authelia:9091/api/verify?rd=https://authelia.example.com' - 'traefik.http.middlewares.authelia.forwardauth.trustForwardHeader=true' - 'traefik.http.middlewares.authelia.forwardauth.authResponseHeaders=Remote-User,Remote-Groups,Remote-Name,Remote-Email' restart: unless-stopped healthcheck: ## In production the healthcheck section should be commented. disable: true whoami: image: traefik/whoami container_name: whoami labels: - 'traefik.enable=true' - 'traefik.http.routers.whoami.rule=Host(`whoami.example.com`)' - 'traefik.http.routers.whoami.entrypoints=https' - 'traefik.http.routers.whoami.tls=true' - 'traefik.http.routers.whoami.tls.options=default' - 'traefik.http.routers.whoami.middlewares=authelia@docker'

回答 1 投票 0

如何修复“ sqlite operationationalror:尝试在dockerized烧瓶app

我想在docker容器中使用sqlite db,但是当我尝试添加或更改数据时,我会得到此错误 Trackback(最近的最新电话): 文件“/usr/local/lib/python3.12/site-packages/flask/a...

回答 1 投票 0

回答 0 投票 0


WazuhDocker部署意外行为

git -c http.proxy="http://tstark:[email protected]:8888" clone https://github.com/wazuh/wazuh-docker.git -b v4.3.10 --depth=1 docker-compose -f generate-indexer-certs.yml run --rm generator docker-compose up -d

回答 3 投票 0


docker-compose.yml

回答 1 投票 0

docker-compose在不同的docker-compose文件中相同的服务名称碰撞

有2个服务,带有2个Docker-compose.yml文件。 这些服务通过桥梁网络连接,以便它们可以在本地进行交流。 service_1 docker-compose.yml 版本:'3.7' 服务:

回答 2 投票 0



docker-composer.yml

version: '3.8' services: database: image: postgres container_name: database restart: unless-stopped environment: POSTGRES_PASSWORD: secret POSTGRES_DB: laravel_docker volumes: - ./postgres-data:/var/lib/postgresql/data ports: - '5432:5432' php-apache: container_name: php-apache build: context: ./php ports: - '8080:80' volumes: - ./src:/var/www/laravel_docker - ./apache/default.conf:/etc/apache2/sites-enabled/000-default.conf depends_on: - database

回答 1 投票 0

docker撰写手表`热重加载功能不起作用

Https://docs.docker.com/get-started/introduction/develops-with-with-with-containers/

回答 0 投票 0


可以docker组成手表“显示容器日志?

i我希望在编辑源文件时使用

回答 1 投票 0


在Dockerfile中安装Numpy要求。导致错误

我怀疑某种相关的问题,但不能为我的一生弄清楚如何使它起作用。

回答 4 投票 0



最新问题
© www.soinside.com 2019 - 2025. All rights reserved.