瀏覽代碼

Merge pull request 'fix(deploy): use registry image and correct docker list format' (#1) from fix/docker-build-format into main

fix/head-method
jschoubben 1 月之前
父節點
當前提交
026eebae3d
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. +3
    -3
      docker-compose.yml
  2. +1
    -2
      module.yml

+ 3
- 3
docker-compose.yml 查看文件

@@ -1,6 +1,7 @@
services:
txt-game:
build: .
image: registry-api.novox.be/novox/txt-game:latest
container_name: txt-game
restart: unless-stopped
environment:
- DOMAIN=${DOMAIN:-localhost}
@@ -8,11 +9,10 @@ services:
- "traefik.enable=true"
- "traefik.http.routers.txt-game.rule=Host(`txt.${DOMAIN:-localhost}`)"
- "traefik.http.routers.txt-game.entrypoints=websecure"
- "traefik.http.routers.txt-game.tls.certresolver=letsencrypt"
- "traefik.http.routers.txt-game.tls.certresolver=le"
- "traefik.http.services.txt-game.loadbalancer.server.port=3000"
networks:
- proxy
- default

networks:
proxy:


+ 1
- 2
module.yml 查看文件

@@ -7,10 +7,9 @@ service:
container: txt-game

docker:
build:
- image: txt-game
context: .
dockerfile: Dockerfile
image: txt-game

env:
DOMAIN:


Loading…
取消
儲存