~qeef/damn-deploy

ref: 0ac4eca385f5044f68f176406951c8ceb5c69159 damn-deploy/server.yml -rw-r--r-- 1.2 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
45
version: "3"
services:
    db:
        build: damndb
        container_name: damndb
        env_file: .env
        restart: always
        networks:
            default:
                aliases:
                    - damndb_server
        volumes:
            - damndb-volume:/var/lib/postgresql/data/
    api:
        build:
            context: server
            args:
                DAMN_SERVER_VERSION: ${DAMN_SERVER_VERSION}
        env_file: .env
        restart: always
        links:
            - db
        labels:
            - "traefik.http.routers.api.rule=Host(`${SERVER_SUB}.${DOMAIN_NAME}`)"
            - "traefik.http.routers.api.tls=true"
            - "traefik.http.routers.api.tls.certresolver=le"
    upkeep:
        build: upkeep
        env_file: .env
        links:
            - db
    traefik:
        image: traefik:v2.0
        restart: always
        volumes:
            - /var/run/docker.sock:/var/run/docker.sock
            - ./traefik.yml:/etc/traefik/traefik.yml
            - ./acme.json:/acme.json
        ports:
            - 80:80
            - 443:443
        labels:
            - "traefik.http.middlewares.redir.redirectscheme.scheme=https"
volumes:
    damndb-volume: