matacoder

Untitled

Feb 12th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.69 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. volumes:
  4.   postgres_data:
  5.   static_sp2:
  6.   media_sp2:
  7.   logs_sp2:
  8.  
  9. services:
  10.   db:
  11.     image: postgres:12.4
  12.     volumes:
  13.       - postgres_data:/var/lib/postgresql/data/
  14.     env_file:
  15.       - ./.env
  16.   web:
  17.     build: .
  18.     restart: always
  19.     environment:
  20.       - PORT=8000
  21.     depends_on:
  22.       - db
  23.     env_file:
  24.       - ./.env
  25.     volumes:
  26.       - static_sp2:/code/static
  27.       - media_sp2:/code/media
  28.   caddy:
  29.     image: lgatica/django-caddy:latest
  30.     links:
  31.       - web:django
  32.     environment:
  33.       - PORT=8000
  34.     ports:
  35.       - 8888:80
  36.     volumes:
  37.       - static_sp2:/var/www/static
  38.       - media_sp2:/var/www/media
  39.       - logs_sp2:/var/log
Advertisement
Add Comment
Please, Sign In to add comment