diff --git a/docker-compose.yml b/docker-compose.yml index f03030b..0c893f5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,8 +1,31 @@ version: '2' services: - web: + com_goutenoir_apps_travel-footprint-calculator: + container_name: com_goutenoir_apps_travel-footprint-calculator + restart: always build: . - ports: - - "5000:5000" volumes: - - .:/app \ No newline at end of file + - .:/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: + # Config for server's nginx-reverse-proxy container + LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com + LETSENCRYPT_EMAIL: antoine@ljbac.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=localhost/compute + - OPTIONS=travel-footprint-calculator.apps.goutenoir.com/compute + - CRON_SCHEDULE="*/3 * * * *" \ No newline at end of file -- libgit2 0.21.2