-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
83 lines (74 loc) · 1.66 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
version: '3.8'
services:
nginx:
image: nginx:1.20.2
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 8000:80
depends_on:
- backend
- frontend
redis:
image: redis
ports:
- 6379:6379
db:
image: postgres:13.4
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: ogtsync
ports:
- '5432:5432'
volumes:
- db-data:/var/lib/postgresql/data:cached
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD}
ports:
- 5050:80
depends_on:
- db
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"
backend:
build:
context: backend
dockerfile: Dockerfile
command: python app/main.py
tty: true
volumes:
- ./backend:/app/:cached
- ./.docker/.ipython:/root/.ipython:cached
environment:
PYTHONPATH: .
DATABASE_URL: 'postgresql+psycopg2://postgres:postgres@db:5432/ogtsync'
depends_on:
- "db"
frontend:
build:
context: frontend
dockerfile: Dockerfile
stdin_open: true
volumes:
- './frontend:/app:cached'
- './frontend/node_modules:/app/node_modules:cached'
environment:
- NODE_ENV=development
volumes:
db-data: