forked from TonikX/analytics_backend
-
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.65 KB
/
docker-compose.yml
File metadata and controls
52 lines (48 loc) · 1.65 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'
services:
db:
image: postgres
ports:
- "5435:5432"
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=analytics_db
volumes:
- ./dbs/postgres-data:/var/lib/postgresql
web:
container_name: analytics_web
build: ./application
command: bash -c "pip install django_extensions && pip install html2text &&
python manage.py runserver --insecure 0.0.0.0:8000";
# python manage.py makemigrations --noinput && python manage.py makemigrations dataprocessing && python manage.py makemigrations workprogramsapp &&
# python manage.py migrate dataprocessing && python manage.py migrate workprogramsapp &
# "python manage.py makemigrations --merge --noinput" --fake-initial; -
# python manage.py makemigrations --noinput &&
# python manage.py migrate --noinput &&
volumes:
- ./application:/application
ports:
- "8003:8000"
restart: always
depends_on:
- db
frontend:
stdin_open: true
tty: true
container_name: analytics_frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- node-modules:/app/node_modules
ports:
- "3002:3000"
environment:
- REACT_APP_API_HOST=${BACKEND_URL_FOR_REACT}
- REACT_APP_API_SCHEMA=http
- REACT_APP_API_PORT=8003
- PORT=3000
volumes:
node-modules: