33 lines
647 B
YAML
33 lines
647 B
YAML
version: "3"
|
|
services:
|
|
db_recipes:
|
|
restart: always
|
|
image: postgres:11-alpine
|
|
volumes:
|
|
- ./postgresql:/var/lib/postgresql/data
|
|
env_file:
|
|
- ./.env
|
|
|
|
web_recipes:
|
|
image: vabene1111/recipes
|
|
restart: always
|
|
env_file:
|
|
- ./.env
|
|
volumes:
|
|
- ./staticfiles:/opt/recipes/staticfiles
|
|
- ./mediafiles:/opt/recipes/mediafiles
|
|
depends_on:
|
|
- db_recipes
|
|
|
|
nginx_recipes:
|
|
image: nginx:mainline-alpine
|
|
restart: always
|
|
ports:
|
|
- 80:80
|
|
env_file:
|
|
- ./.env
|
|
volumes:
|
|
- ./nginx/conf.d:/etc/nginx/conf.d
|
|
- ./staticfiles:/static
|
|
- ./mediafiles:/media
|