docker-compose.yml
1.46 KB
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
version: '2.0'
services:
com_goutenoir_apps_travel-footprint-calculator:
container_name: com_goutenoir_apps_travel-footprint-calculator
restart: always
build: .
volumes:
- .:/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:
# DEBUG: true
# Config for server's nginx-reverse-proxy container
LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com
LETSENCRYPT_EMAIL: antoine@goutenoir.com
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:
OPTIONS: travel-footprint-calculator.apps.goutenoir.com/compute
CRON_SCHEDULE: "*/3 * * * *"
# - OPTIONS=localhost/compute
# - OPTIONS=travel-footprint-calculator.apps.goutenoir.com/compute
# - CRON_SCHEDULE="*/3 * * * *"
# Tip from https://github.com/jwilder/nginx-proxy/issues/1132#issuecomment-392460028
# Create it first: docker network create webproxy
networks:
default:
external:
name: webproxy