-
Notifications
You must be signed in to change notification settings - Fork 32
/
docker-compose.yml
60 lines (56 loc) · 1.8 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
49
50
51
52
53
54
55
56
57
58
59
60
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
cache:
image: memcached
privileged: true
ports:
- "11211:11211"
entrypoint:
- memcached
- -m 64
web:
container_name: analytics_web
build: ./application
command: bash -c "python manage.py runserver 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
- cache
frontend:
stdin_open: true
tty: true
container_name: analytics_frontend
build:
context: ./frontend
dockerfile: Dockerfile
volumes:
- ./frontend:/app
- /app/node_modules
ports:
- "3003:3000"
environment:
- REACT_APP_API_HOST=${BACKEND_URL_FOR_REACT}
- REACT_APP_API_SCHEMA=${REACT_APP_API_SCHEMA}
- REACT_APP_API_PORT=${REACT_APP_API_PORT}
- PORT=${PORT}
volumes:
node-modules: