Commit 3ac85c09990c8fef67c2736989062b08671d3115
1 parent
bc64bd7b
Exists in
master
Continue tweaking docker compose configuration.
This is going to work. I can feel it ! So … tired … Dying … … ARGH.
Showing
1 changed file
with
27 additions
and
4 deletions
Show diff stats
docker-compose.yml
1 | version: '2' | 1 | version: '2' |
2 | services: | 2 | services: |
3 | - web: | 3 | + com_goutenoir_apps_travel-footprint-calculator: |
4 | + container_name: com_goutenoir_apps_travel-footprint-calculator | ||
5 | + restart: always | ||
4 | build: . | 6 | build: . |
5 | - ports: | ||
6 | - - "5000:5000" | ||
7 | volumes: | 7 | volumes: |
8 | - - .:/app | ||
9 | \ No newline at end of file | 8 | \ No newline at end of file |
9 | + - .:/app | ||
10 | + | ||
11 | + # The server's nginx-reverse-proxy does not like ports. | ||
12 | + # Uncomment this to get it working on localhost for dev. | ||
13 | +# ports: | ||
14 | +# - "5000:5000" | ||
15 | + | ||
16 | + environment: | ||
17 | + # Config for server's nginx-reverse-proxy container | ||
18 | + LETSENCRYPT_HOST: travel-footprint-calculator.apps.goutenoir.com | ||
19 | + LETSENCRYPT_EMAIL: antoine@ljbac.com | ||
20 | + VIRTUAL_HOST: travel-footprint-calculator.apps.goutenoir.com | ||
21 | + # 80 is the default port | ||
22 | + VIRTUAL_PORT: 80 | ||
23 | + ################################################### | ||
24 | + | ||
25 | + | ||
26 | + com_goutenoir_apps_travel-footprint-calculator_mahcron: | ||
27 | + container_name: com_goutenoir_apps_travel-footprint-calculator_mahcron | ||
28 | + image: jsonfry/curl-cron | ||
29 | + environment: | ||
30 | +# - OPTIONS=localhost/compute | ||
31 | + - OPTIONS=travel-footprint-calculator.apps.goutenoir.com/compute | ||
32 | + - CRON_SCHEDULE="*/3 * * * *" | ||
10 | \ No newline at end of file | 33 | \ No newline at end of file |