compose.yml (1131B)
1 services: 2 caddy: 3 image: caddy:2-alpine 4 restart: unless-stopped 5 ports: 6 - "80:80" 7 - "443:443" 8 volumes: 9 - ./caddy/Caddyfile:/etc/caddy/Caddyfile:ro 10 - stagit_www:/www:ro 11 depends_on: 12 - cv 13 14 cv: 15 build: ./cv 16 ports: 17 - "127.0.0.1:8000:8000" 18 restart: unless-stopped 19 develop: 20 watch: 21 - action: sync+restart 22 path: ./cv/main.py 23 target: /app/main.py 24 - action: sync+restart 25 path: ./cv/index.html 26 target: /app/index.html 27 - action: sync 28 path: ./cv/style.css 29 target: /app/style.css 30 - action: sync 31 path: ./cv/robots.txt 32 target: /app/robots.txt 33 - action: sync 34 path: ./cv/sitemap.xml 35 target: /app/sitemap.xml 36 - action: rebuild 37 path: ./cv/Dockerfile 38 - action: rebuild 39 path: ./cv/requirements.txt 40 41 stagit: 42 build: ./stagit 43 restart: unless-stopped 44 init: true 45 volumes: 46 - ./stagit:/config:ro 47 - stagit_git:/git 48 - stagit_www:/www 49 50 volumes: 51 stagit_git: 52 stagit_www: