-
-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
29 lines (29 loc) · 665 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
29 lines (29 loc) · 665 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
version: '3'
services:
sarna:
build: .
volumes:
- vol_sarna_upload:/sarna/uploaded_data
- vol_sarna_config:/sarna/config
environment:
FLASK_ENV: 'production'
SQLALCHEMY_DATABASE_URI: 'postgres://user:password@psql/sarna'
SECRET_KEY: 'Insecure Secret Change Me!!'
depends_on:
- psql
ports:
- "5000:5000"
psql:
image: postgres
environment:
POSTGRES_USER: 'user'
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: 'sarna'
volumes:
- vol_sarna_db:/var/lib/postgresql/data
ports:
- 127.0.0.1:5432:5432
volumes:
vol_sarna_db:
vol_sarna_upload:
vol_sarna_config: