-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.override.yml
63 lines (61 loc) · 1.57 KB
/
docker-compose.override.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
version: '3'
services:
django:
build:
context: .
dockerfile: ./dev/Dockerfile
command: [ "./manage.py", "runserver", "0.0.0.0:8000" ]
# Log printing via Rich is enhanced by a TTY
tty: true
env_file: ./dev/.env.docker-compose
environment:
# ensure these match the web container
- DJANGO_HOMEPAGE_REDIRECT_URL=http://localhost:8080/
- VUE_APP_BASE_URL=http://localhost:8080/
- VUE_APP_OAUTH_CLIENT_ID=cBmD6D6F2YAmMWHNQZFPUr4OpaXVpW5w4Thod6Kj
volumes:
- .:/opt/uvdat-server
ports:
- 8000:8000
depends_on:
- postgres
- rabbitmq
- minio
celery:
build:
context: .
dockerfile: ./dev/Dockerfile
command:
[
"celery",
"--app",
"uvdat.celery",
"worker",
"--loglevel",
"INFO",
"--without-heartbeat"
]
# Docker Compose does not set the TTY width, which causes Celery errors
tty: false
environment:
- DJANGO_HOMEPAGE_REDIRECT_URL=http://localhost:8080/
env_file: ./dev/.env.docker-compose
volumes:
- .:/opt/uvdat-server
depends_on:
- postgres
- rabbitmq
- minio
web:
image: node:latest
command: [ "npm", "run", "serve" ]
working_dir: /web
volumes:
- ./web:/web
- ./.git:/web/.git # allow fetching version tag
ports:
- 8080:8080
environment:
- VUE_APP_OAUTH_CLIENT_ID=cBmD6D6F2YAmMWHNQZFPUr4OpaXVpW5w4Thod6Kj
- VUE_APP_API_ROOT=http://localhost:8000/
- VUE_APP_OAUTH_API_ROOT=http://localhost:8000/oauth/