-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
46 lines (44 loc) · 1.09 KB
/
docker-compose.prod.yml
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
version: '3.3'
services:
backend:
build:
context: backend
dockerfile: Dockerfile
restart: always
container_name: backend
user: "${UID}:${GID}"
command: gunicorn --bind 0.0.0.0:5000 wsgi:app
volumes:
- ./backend:/backend
ports:
- "5000:5000"
env_file:
- config.env
environment:
FLASK_APP: /backend/app.py
FLASK_RUN_HOST: 0.0.0.0
FLASK_ENV: development
API_KEY: ${API_KEY}
SQLALCHEMY_DATABASE_URI: 'postgresql://tester:complicatedpass@postgresql:5432/autoria'
postgresql:
image: postgres:11.2
user: "${UID}:${GID}"
restart: always
environment:
POSTGRES_USER: tester
POSTGRES_PASSWORD: complicatedpass
ports:
- "5432:5432"
volumes:
- ./docker_data/postgresql:/var/lib/postgresql/data
nginx:
container_name: nginx
restart: always
build:
context: nginx
dockerfile: Dockerfile
volumes:
- './nginx/nginx.conf:/etc/nginx/nginx.conf'
- './frontend/dist:/var/www/dist'
ports:
- "80:80"