-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
154 lines (140 loc) · 3.23 KB
/
Copy pathdocker-compose.yml
File metadata and controls
154 lines (140 loc) · 3.23 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
services:
db:
image: postgres:16.4
env_file: env.d/db
volumes:
- ./docker/files/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
ports:
- "5452:5432"
# We use our production image as a basis for the development image, hence, we
# define a "base" service upon which the "app" service depends to force
# marsha:latest build.
base:
build: .
image: marsha:latest
# Override the default command so that the container exists immediately when
# it is run (no server).
command: echo "I should exit now. Bye."
app:
build:
context: .
dockerfile: ./docker/images/dev/Dockerfile
args:
DOCKER_USER: ${DOCKER_USER:-1000}
image: marsha:dev
env_file:
- env.d/db
- env.d/${ENV_FILE:-development}
# Override production container command that runs gunicorn in favor of the
# django development server
command: >
python manage.py runserver 0.0.0.0:8000
ports:
- "8060:8000"
volumes:
- .:/app
- ./data/static:/data/static
- ./data/media:/data/media
- ./data/files:/data/files
depends_on:
- "base"
- "db"
- "redis"
- "mailcatcher"
stdin_open: true
tty: true
celery:
image: marsha:dev
env_file:
- env.d/db
- env.d/${ENV_FILE:-development}
command: >
python -m celery -A marsha.celery_app worker -l info
volumes:
- .:/app
- ./data/static:/data/static
- ./data/media:/data/media
- ./data/files:/data/files
depends_on:
- "base"
- "db"
- "redis"
- "mailcatcher"
stdin_open: true
tty: true
peertube-runner:
image: fundocker/peertube-runner:latest-whisper_ctranslate2
env_file:
- env.d/peertube_runner
webtorrent:
image: node:20
environment:
- APP_PORT=3000
- JWT_SIGNING_KEY=ThisIsAnExampleKeyForDevPurposeOnly
ports:
- "8080:3000"
working_dir: /app
command: ["yarn", "run", "dev"]
volumes:
- ./src/webtorrent:/app
redis:
image: redis:5
e2e:
build:
context: .
dockerfile: ./docker/images/e2e/Dockerfile
image: marsha:e2e
env_file:
- env.d/db
- env.d/${ENV_FILE:-development}
ports:
- "8070:8000"
volumes:
- .:/app
- ./data/static:/data/static
- ./src/backend/marsha/e2e/media:/data/media/e2e
depends_on:
- "app"
stdin_open: true
tty: true
crowdin:
image: crowdin/cli:3.7.10
volumes:
- ".:/app"
env_file:
- env.d/development
working_dir: /app
node:
image: node:20
volumes:
- ".:/app"
working_dir: /app/src/frontend
mail-generator:
image: node:20
volumes:
- ".:/app"
working_dir: /app/src/mail
dockerize:
image: jwilder/dockerize
mailcatcher:
image: sj26/mailcatcher:latest
ports:
- "1080:1080"
prosody-app:
image: fundocker/prosody
ports:
- 5222:5222
volumes:
- "./docker/files/etc/prosody:/etc/prosody"
depends_on:
- db
prosody-nginx:
image: nginx
ports:
- 8061:80
volumes:
- "./docker/files/etc/nginx/conf.d:/etc/nginx/conf.d"
depends_on:
- prosody-app
links:
- "prosody-app:prosody"