-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
75 lines (70 loc) · 1.83 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
version: '3.7'
services:
postgres:
container_name: gms-postgres-container
image: postgres:11
volumes:
- ./docker/postgres/data:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_PASSWORD: root
mongo:
container_name: gms-mongo-container
image: mongo:latest
volumes:
- ./docker/mongo/data:/data/db
ports:
- 27017:27017
redis:
container_name: gms-redis
image: redis:latest
ports:
- "6379:6379"
backend: &backend
container_name: gms-backend-container
build:
context: ./
dockerfile: ./docker/backend/dev/Dockerfile
command: "./entrypoint.sh"
environment:
- DJANGO_PROJECT_SECRET=your_secret_here
- DJANGO_PROJECT_DEBUG=True
- DJANGO_ALLOWED_HOST=127.0.0.1
- DJANGO_CORS_ORIGIN_WHITELIST=http://localhost:8080
- DJANGO_AUTH0_API_IDENTIFIER=https://django-vuejs-api
- DJANGO_AUTH0_DOMAIN=dev-z912l6w0.eu.auth0.com
volumes:
- ./backend:/code/backend
ports:
- "8000:8000"
depends_on:
- postgres
- mongo
- celery_worker
celery_worker:
container_name: gms-celery
<<: *backend
command: "celery worker -A backend.settings"
ports: []
depends_on:
- redis
- postgres
- mongo
frontend:
container_name: gms-frontend-container
build:
context: ./
dockerfile: ./docker/frontend/dev/Dockerfile
volumes:
- ./frontend:/app
command: "npm run dev"
environment:
- HOST=0.0.0.0
- VUE_AUTH0_CLIENT_ID='tnlMjimbEuNye055qr2C3Wd783M9z47A'
- VUE_AUTH0_DOMAIN='dev-z912l6w0.eu.auth0.com'
- VUE_AUTH0_CALLBACK_REDIRECT='http://localhost:8080/callback'
- VUE_AUTH0_API_IDENTIFIER='https://django-vuejs-api'
- VUE_API_BASE_URL='http://127.0.0.1:8000'
ports:
- "8080:8080"