You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portal-oddajanje-solar/docker-compose.yml

31 lines
1.0 KiB

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_APP_SECRET_KEY=05ec303ec4a2c316426860523f95b349
- PORTALDS4DS1_SMTP_PORT=465
- PORTALDS4DS1_IMAP_PORT=993
- PORTALDS4DS1_MAX_UPLOAD_SIZE=1000000000
- PORTALDS4DS1_BASE_DIR=./
- PORTALDS4DS1_CONTRACT_CLIENT_CONTACT=Testko Tester
ports:
- 127.0.0.1:5000:80
volumes:
- /tmp/portal-ds4-ds1/uploads:/usr/src/portal-webapp/uploads
command: gunicorn -t 3000 --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