Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- nginx:
- restart: always
- image: nginx:latest
- expose:
- - 8080
- ports:
- - "80:8080"
- volumes:
- - ./sources/newcams/static:/opt/newcams/static
- - ./sources/newcams/media:/opt/newcams/media
- - ./logs:/opt/logs
- - ./nginx/conf:/etc/nginx/conf.d
- depends_on:
- - python
- python:
- restart: always
- build:
- context: ./python
- dockerfile: ./Dockerfile
- volumes:
- - ./sources:/opt
- expose:
- - 8000
- ports:
- - 8000:8000
- command: "gunicorn -c gunicorn.py --chdir /opt/newcams/ newcams.wsgi"
- mariadb:
- image: mariadb:latest
- ports:
- - 3306:3306
- environment:
- MYSQL_ROOT_PASSWORD: rootpass
- MYSQL_USER: django
- MYSQL_PASSWORD: djangopass
- MYSQL_DATABASE: mydb
- volumes:
- - ./db:/var/lib/mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement