-
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 911 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 911 Bytes
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
version: '3.8'
services:
backend:
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "6969:6969"
environment:
- DATABASE_URL=postgresql://postgres:postgres@db:5432/postgres
- REDIS_URL=redis://redis:6379/0
- FLASK_APP=magicpush/__init__.py
- CELERY_BROKER_URL=redis://redis:6379/1
- CELERY_RESULT_BACKEND=redis://redis:6379/1
- CELERY_ONCE_URL=redis://redis:6379/1
depends_on:
- db
- redis
frontend:
build:
context: .
dockerfile: Dockerfile
environment:
- VUE_APP_SERVER_URL=http://localhost:6969
ports:
- "8080:8080"
depends_on:
- backend
db:
image: postgres:13
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- "5432:5432"
redis:
image: redis:6
ports:
- "6379:6379"