Blame view

docker-compose.yml 1.46 KB
74f41194   Antoine Goutenoir   Sure, why not.
1
version: '2.0'
00580901   Antoine Goutenoir   Add a basic, ugly...
2
services:
3ac85c09   Antoine Goutenoir   Continue tweaking...
3
4
5
    com_goutenoir_apps_travel-footprint-calculator:
        container_name: com_goutenoir_apps_travel-footprint-calculator
        restart: always
00580901   Antoine Goutenoir   Add a basic, ugly...
6
        build: .
00580901   Antoine Goutenoir   Add a basic, ugly...
7
        volumes:
3ac85c09   Antoine Goutenoir   Continue tweaking...
8
9
10
11
12
13
14
15
        - .:/app

        # The server's nginx-reverse-proxy does not like ports.
        # Uncomment this to get it working on localhost for dev.
#        ports:
#        - "5000:5000"

        environment:
16c55e61   Antoine Goutenoir   Continue duelling...
16
#            DEBUG: true
3ac85c09   Antoine Goutenoir   Continue tweaking...
17
18
            # Config for server's nginx-reverse-proxy container
            LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com
16c55e61   Antoine Goutenoir   Continue duelling...
19
            LETSENCRYPT_EMAIL: antoine@goutenoir.com
3ac85c09   Antoine Goutenoir   Continue tweaking...
20
21
22
23
24
25
26
27
28
29
            VIRTUAL_HOST: travel-footprint-calculator.apps.goutenoir.com
            # 80 is the default port
            VIRTUAL_PORT: 80
            ###################################################


    com_goutenoir_apps_travel-footprint-calculator_mahcron:
        container_name: com_goutenoir_apps_travel-footprint-calculator_mahcron
        image: jsonfry/curl-cron
        environment:
5fa64d17   Antoine Goutenoir   Making every shit...
30
31
            OPTIONS: travel-footprint-calculator.apps.goutenoir.com/compute
            CRON_SCHEDULE: "*/3 * * * *"
3ac85c09   Antoine Goutenoir   Continue tweaking...
32
#        - OPTIONS=localhost/compute
5fa64d17   Antoine Goutenoir   Making every shit...
33
34
#        - OPTIONS=travel-footprint-calculator.apps.goutenoir.com/compute
#        - CRON_SCHEDULE="*/3 * * * *"
74f41194   Antoine Goutenoir   Sure, why not.
35
36
37
38
39
40
41

# Tip from https://github.com/jwilder/nginx-proxy/issues/1132#issuecomment-392460028
# Create it first: docker network create webproxy
networks:
    default:
       external:
          name: webproxy