-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
59 lines (52 loc) · 1.33 KB
/
docker-compose.yml
File metadata and controls
59 lines (52 loc) · 1.33 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.7'
services:
redis:
image: 'redis:5.0.6'
restart: always
container_name: modelate_redis
command: redis-server --requirepass a3192f4d42bd
volumes:
- $HOME/modelate-redis:/data
ports:
- '6369:6379'
database:
image: postgres:12.0-alpine
restart: always
container_name: modelate_psql
environment:
POSTGRES_DB: 'modelate'
POSTGRES_USER: 'backend'
POSTGRES_PASSWORD: 'd3c885805581'
ports:
- '5442:5432'
volumes:
- $HOME/modelate-psql:/var/lib/postgresql/data
flaskapp:
build: ./modelate
restart: always
command: flask run
container_name: modelate_app
volumes:
- .:/code
environment:
FLASK_SKIP_DOTENV: 0
FLASK_APP: wsgi.py
FLASK_DEBUG: 1
FLASK_RUN_HOST: 0.0.0.0
SITE_NAME: modelate
SECRET_KEY: 5d5a4c4b57ac80297ec16c712fb17784557e
MODELATE_STATUS: modelate.config.DevelopmentConfig
REDIS_PASSWORD: a3192f4d42bd
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_DB_NO: 0
DB_TYPE: POSTGRES
POSTGRES_HOST: database
POSTGRES_PORT: 5432
POSTGRES_USERNAME: backend
POSTGRES_PASSWORD: d3c885805581
POSTGRES_DB: modelate
ports:
- '5000:5000'
depends_on:
- database