- version: "2"
- services:
- db_recipes:
- image: postgres
- environment:
- - POSTGRES_DB=postgres
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- restart: unless-stopped
- recipes:
- image: vabene1111/recipes
- container_name: recipes
- ports:
- - 92:8080
- volumes:
- - ./staticfiles:/opt/recipes/staticfiles
- - ./mediafiles:/opt/recipes/mediafiles
- environment:
- - SECRET_KEY=RM0XBoAc8aUIZlvuRQuOPc0KURIZGXMXFAebHmBxFsBdMmqrmj
- - DB_ENGINE=django.db.backends.postgresql
- - POSTGRES_HOST=db_recipes
- - POSTGRES_PORT=5432
- - POSTGRES_USER=postgres
- - POSTGRES_PASSWORD=postgres
- - POSTGRES_DB=postgres
- restart: unless-stopped
- depends_on:
- - db_recipes