-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (48 loc) · 1.03 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.03 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
version: '3.8'
services:
app:
container_name: planit_app
build: ./app
volumes:
- './app:/app'
- '/app/node_modules'
ports:
- ${APP_PORT}:3000
environment:
- CHOKIDAR_USEPOLLING=true
- REACT_APP_API_BASE_URL
stdin_open: true
api:
container_name: planit_api
build: ./api
volumes:
- './api:/api'
ports:
- ${API_PORT}:5000
depends_on:
- postgres
restart: "always"
environment:
- API_PORT
- ENVIRONMENT=development
- FLASK_ENV=development
- FLASK_DEBUG=1
- POSTGRES_HOST
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD=development_password
postgres:
container_name: planit_postgres
image: postgres:14.0
environment:
- POSTGRES_HOST
- POSTGRES_DB
- POSTGRES_USER
- POSTGRES_PASSWORD=development_password
ports:
- "5432:5432"
volumes:
- planit-postgres-data:/var/lib/postgresql/data
volumes:
planit-postgres-data:
name: planit-postgres-data