2020-10-23 10:22:04 +00:00
|
|
|
version: "3"
|
|
|
|
services:
|
|
|
|
webapp:
|
|
|
|
build: .
|
|
|
|
restart: always
|
2021-02-20 19:07:21 +00:00
|
|
|
environment:
|
2022-01-15 09:37:40 +00:00
|
|
|
- PORTALDS4DS1_SERVER_NAME=localhost:5000
|
2021-03-24 10:05:36 +00:00
|
|
|
- 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
|
2021-05-05 12:26:26 +00:00
|
|
|
- PORTALDS4DS1_APP_SECRET_KEY=05ec303ec4a2c316426860523f95b349
|
2021-03-24 10:05:36 +00:00
|
|
|
- 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:
|
2021-03-24 10:05:36 +00:00
|
|
|
- /tmp/portal-ds4-ds1/uploads:/usr/src/portal-webapp/uploads
|
2021-05-27 06:43:19 +00:00
|
|
|
command: gunicorn -t 3000 --bind 0.0.0.0:80 -w 1 --access-logfile - app:app
|
2021-03-24 10:05:36 +00:00
|
|
|
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
|