aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
blob: 62945b8a0c6db52eb7b209f1314431a342e7a574 (plain)
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
services:
    sytc:
        build:
            context: .
            dockerfile: Dockerfile
        image: reg.reaweb.uk/smallytchannelbot
        networks:
            - db-network
        external_links:
            - mariadb:mysql
        volumes:
            - ./config.json:/app/config.json
        restart: unless-stopped

    cron:
        build:
            context: .
            dockerfile: ./cron/Dockerfile
        image: reg.reaweb.uk/smallytchannelbot_cron
        networks:
            - db-network
        external_links:
            - mariadb:mysql
        depends_on:
            - sytc
        volumes:
            - ./config.json:/app/config.json
        restart: unless-stopped

networks:
    db-network:
        external: true
        name: mariadb