-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
48 lines (46 loc) · 1.07 KB
/
docker-compose.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
47
48
version: '3.3'
services:
backend:
build:
context: backend
dockerfile: Dockerfile
restart: always
container_name: backend
user: "${UID}:${GID}"
command: flask run
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
frontend:
container_name: frontend
restart: always
build:
context: frontend
dockerfile: Dockerfile
environment:
VUE_APP_API_ENDPOINT: localhost
volumes:
- './frontend:/frontend'
- '/frontend/node_modules'
ports:
- '8080:8080'