portal-oddajanje-solar/docker-compose.yml

30 lines
947 B
YAML
Raw Normal View History

2020-10-23 10:22:04 +00:00
version: "3"
services:
webapp:
build: .
restart: always
environment:
- PORTALDS4DS1_SQL_CONN_STR=postgresql://portal:randompass123@db/portal
- PORTALDS4DS1_MAIL_HOST=posta.cjvt.si
- PORTALDS4DS1_MAIL_LOGIN=oddaja-besedil@cjvt.si
- PORTALDS4DS1_MAIL_PASS=randompass123
- PORTALDS4DS1_SMTP_PORT=465
- PORTALDS4DS1_IMAP_PORT=993
- PORTALDS4DS1_MAX_UPLOAD_SIZE=1000000000
- PORTALDS4DS1_BASE_DIR=./
- PORTALDS4DS1_CONTRACT_CLIENT_CONTACT=Testko Tester
2020-10-23 10:22:04 +00:00
ports:
- 127.0.0.1:5000:80
volumes:
- /tmp/portal-ds4-ds1/uploads:/usr/src/portal-webapp/uploads
command: gunicorn --bind 0.0.0.0:80 -w 1 --access-logfile - app:app
db:
image: postgres:9.6.21-alpine
restart: always
environment:
- POSTGRES_PASSWORD=randompass123
- POSTGRES_USER=portal
- POSTGRES_DB=portal
volumes:
- /tmp/portal-ds4-ds1/db:/var/lib/postgresql/data