-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
72 lines (68 loc) · 1.74 KB
/
docker-compose.yaml
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
61
62
63
64
65
66
67
68
69
70
71
72
version: '1.0'
services:
redis:
image: redis
ports:
- 6379:6379
volumes:
- ./data/redis:/var/lib/redis
postgres:
image: postgres:latest
restart: always
environment:
POSTGRES_DB: netsight
POSTGRES_USER: netsight
POSTGRES_PASSWORD: netsight
ports:
- '5432:5432'
volumes:
- ./data/netsight-rdbms:/var/lib/postgresql/data
backend:
build:
context: backend
dockerfile: Dockerfile
tty: true
volumes:
- ./backend:/app/:cached
- ./.docker/.ipython:/root/.ipython:cached
command: bash -c "cd /home/app && alembic upgrade head && python3 deploy/init_metadata.py && python3 src/__main__.py"
environment:
SQLALCHEMY_DATABASE_URI: 'postgresql+asyncpg://netsight:netsight@postgres:5432/netsight'
REDIS_DSN: 'redis://redis:6379/0'
BASE_URL: 'http://backend:8000'
depends_on:
- "postgres"
- "redis"
ports:
- 8000:8000
# worker:
# build:
# context: backend
# dockerfile: Dockerfile
# command: celery --app app.tasks worker --loglevel=DEBUG -Q main-queue -c 1
# flower:
# image: mher/flower
# command: celery flower --broker=redis://redis:6379/0 --port=5555
# ports:
# - 5555:5555
# depends_on:
# - "redis"
# nginx:
# image: nginx:latest
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
# ports:
# - 8000:80
# depends_on:
# - backend
# - frontend
# frontend:
# build:
# context: frontend
# dockerfile: Dockerfile
# stdin_open: true
# volumes:
# - './frontend:/app:cached'
# - './frontend/node_modules:/app/node_modules:cached'
# environment:
# - NODE_ENV=development