~qeef/damn-deploy

ref: 0ac4eca385f5044f68f176406951c8ceb5c69159 damn-deploy/clients.yml -rw-r--r-- 2.0 KiB
0ac4eca3Jiri Vlasak Merge branch 'release/0.8.0' 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
version: "3"
services:
    client:
        build:
            context: client
            args:
                DAMN_SERVER: ${SERVER_SUB}.${DOMAIN_NAME}
                DAMN_CLIENT_REPO: ${DAMN_CLIENT_REPO}
                DAMN_CLIENT_VERSION: ${DAMN_CLIENT_VERSION}
                DEFAULT_LANG: ${DEFAULT_LANG}
                DEFAULT_AREAS_VIEW: ${DEFAULT_AREAS_VIEW}
                DEFAULT_WEB_EDITOR: ${DEFAULT_WEB_EDITOR}
                DAMN_CHAT: ${CHAT_SUB}.${DOMAIN_NAME}
        env_file: .env
        restart: always
        environment:
            - NGINX_HOST=${CLIENT_SUB}.${DOMAIN_NAME}
        labels:
            - "traefik.http.routers.client-unsec.entrypoints=web"
            - "traefik.http.routers.client-unsec.rule=Host(`${CLIENT_SUB}.${DOMAIN_NAME}`)"
            - "traefik.http.routers.client-unsec.middlewares=redir@docker"
            - "traefik.http.routers.client.entrypoints=web-secure"
            - "traefik.http.routers.client.rule=Host(`${CLIENT_SUB}.${DOMAIN_NAME}`)"
            - "traefik.http.routers.client.tls=true"
            - "traefik.http.routers.client.tls.certresolver=le"
    manager:
        build:
            context: manager
            args:
                DAMN_SERVER: ${SERVER_SUB}.${DOMAIN_NAME}
                DAMN_MANAGER_REPO: ${DAMN_MANAGER_REPO}
                DAMN_MANAGER_VERSION: ${DAMN_MANAGER_VERSION}
        env_file: .env
        restart: always
        environment:
            - NGINX_HOST=${MANAGER_SUB}.${DOMAIN_NAME}
        labels:
            - "traefik.http.routers.manager-unsec.entrypoints=web"
            - "traefik.http.routers.manager-unsec.rule=Host(`${MANAGER_SUB}.${DOMAIN_NAME}`)"
            - "traefik.http.routers.manager-unsec.middlewares=redir@docker"
            - "traefik.http.routers.manager.entrypoints=web-secure"
            - "traefik.http.routers.manager.rule=Host(`${MANAGER_SUB}.${DOMAIN_NAME}`)"
            - "traefik.http.routers.manager.tls=true"
            - "traefik.http.routers.manager.tls.certresolver=le"