From Tom, 2 Weeks ago, written in Plain Text.
This paste will go to meet its maker in 1 Week.
Embed
  1. version: "2"
  2. services:
  3.   db_recipes:
  4.     image: postgres
  5.     environment:
  6.       - POSTGRES_DB=postgres
  7.       - POSTGRES_USER=postgres
  8.       - POSTGRES_PASSWORD=postgres
  9.     restart: unless-stopped
  10.  
  11.   recipes:
  12.     image: vabene1111/recipes
  13.     container_name: recipes
  14.     ports:
  15.       - 92:8080
  16.     volumes:
  17.       - ./staticfiles:/opt/recipes/staticfiles
  18.       - ./mediafiles:/opt/recipes/mediafiles
  19.     environment:
  20.       - SECRET_KEY=RM0XBoAc8aUIZlvuRQuOPc0KURIZGXMXFAebHmBxFsBdMmqrmj
  21.       - DB_ENGINE=django.db.backends.postgresql
  22.       - POSTGRES_HOST=db_recipes
  23.       - POSTGRES_PORT=5432
  24.       - POSTGRES_USER=postgres
  25.       - POSTGRES_PASSWORD=postgres
  26.       - POSTGRES_DB=postgres
  27.     restart: unless-stopped
  28.     depends_on:
  29.       - db_recipes
  30.