-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
59 lines (53 loc) · 1.37 KB
/
docker-compose.yml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '2.2'
services:
caddy:
image: caddy:2.0.0
ports:
- "80:80"
- "443:443"
# redirect old app to ssl
- "8080:8080"
volumes:
- caddy:/data
- $PWD/Caddyfile:/etc/caddy/Caddyfile
- $PWD/staticfiles/:/app/static/
recipes:
build: .
environment:
DATABASE_URL: postgres://postgres:${DB_PASSWORD:-postgres}@postgres:5432/postgres
volumes:
- $PWD:/app
- recipes-cache:/tmp/recipes
expose:
- 80
depends_on:
- caddy
- postgres
labels:
# routinely check for new recipes
deck-chores.new-recipes.command: python manage.py scrape --urls --recipes --images --ingest
deck-chores.new-recipes.interval: weekly
# update all recipes less frequently
deck-chores.update-recipes.command: python manage.py scrape --urls --recipes --images --ingest --force
deck-chores.update-recipes.interval: 30 days
postgres:
image: postgres:11
# NOTE: use "expose" in production
ports:
- "5432:5432"
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
volumes:
- postgres:/var/lib/postgresql/data
deck-chores:
image: funkyfuture/deck-chores:1.0
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
logging:
options:
max-size: 10m
volumes:
postgres:
caddy:
recipes-cache: