-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
59 lines (55 loc) · 1.22 KB
/
docker-compose.dev.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
49
50
51
52
53
54
55
56
57
58
59
services:
angular:
container_name: angular-dev
image: matcha/dev-angular
build:
context: ./frontend/
dockerfile: Dockerfile.dev
volumes:
- ./frontend/AngularApp:/app
ports:
- '4200:4200'
stdin_open: true
tty: true
environment:
- CHOKIDAR_USEPOLLING=true
flask:
container_name: flask-dev
image: matcha/dev-flask
build:
context: ./backend/
dockerfile: Dockerfile.dev
volumes:
- ./backend:/app
ports:
- '5001:5000'
environment:
- FLASK_APP=matcha
- FLASK_ENV=development
- CHOKIDAR_USEPOLLING=true
env_file:
- .env
command: flask --debug run --host=0.0.0.0 --port=5000
depends_on:
- postgres
networks:
- appnet
postgres:
container_name: postgres-dev
image: postgres:latest
ports:
- '5432:5432'
volumes:
- data:/var/lib/postgresql/data
- ./postgres-init:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_NAME}
networks:
- appnet
volumes:
data:
name: postgres-volume-dev
networks:
appnet: