-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
70 lines (66 loc) · 1.86 KB
/
docker-compose.yml
File metadata and controls
70 lines (66 loc) · 1.86 KB
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
include:
- path: docker-compose.services.yml
env_file:
- env/shared.env
- env/shared.local.env
- env/backend.env
- env/backend.local.env
# Define the extra_hosts as a reusable anchor
x-extra-hosts: &default-extra-hosts
extra_hosts:
- "mitxonline.odl.local:host-gateway"
- "kc.odl.local:host-gateway"
- "api.learn.odl.local:host-gateway"
services:
web:
extends:
file: docker-compose.apps.yml
service: web
<<: *default-extra-hosts
env_file:
- path: env/shared.env
- path: env/shared.local.env
required: false
- path: env/backend.env
- path: env/backend.local.env
required: false
# DEPRECATED: legacy .env file at the repo root
- path: .env
required: false
watch:
extends:
file: docker-compose.apps.yml
service: watch
extra_hosts:
# Both the browser and NextJS server (containerized) make requests to
# api.open.odl.local, forward those to host
- "api.open.odl.local:host-gateway"
- "mitxonline.odl.local:host-gateway"
- "learn.odl.local:host-gateway"
- "kc.odl.local:host-gateway"
- "api.learn.odl.local:host-gateway"
env_file:
- path: env/shared.env
- path: env/shared.local.env
required: false
- path: env/frontend.env
- path: env/frontend.local.env
required: false
# DEPRECATED: legacy .env file at the repo root
- path: .env
required: false
celery:
extends:
file: docker-compose.apps.yml
service: celery
<<: *default-extra-hosts
env_file:
- path: env/shared.env
- path: env/shared.local.env
required: false
- path: env/backend.env
- path: env/backend.local.env
required: false
# DEPRECATED: legacy .env file at the repo root
- path: .env
required: false