-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (57 loc) · 1.62 KB
/
docker-compose.yml
File metadata and controls
57 lines (57 loc) · 1.62 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
version: "3"
services:
docs_sphinx:
build:
context: .
dockerfile: docs/Dockerfile
args:
ENV: ${ENV}
image: docs_sphinx
volumes:
- ./docs:/docs
- ./backend:/backend
command: make html
postgres:
image: postgres:18-alpine
environment:
POSTGRES_HOST_AUTH_METHOD: trust
healthcheck:
test: [ "CMD", "pg_isready", "-U", "postgres" ]
interval: 1s
restart: unless-stopped
server:
build:
context: .
args:
ENV: ${ENV}
volumes:
- ./docs/build:/content-server/docs/build
- ./docs/api:/content-server/docs/api
- ./files:/content-server/files
- ./logs:/content-server/backend/logs
- ./msmtprc:/etc/msmtprc:ro
depends_on:
- postgres
ports:
- ${PUBLISHED_PORT}:${CONTENT_SERVER_PORT}
extra_hosts:
- "host.docker.internal:host-gateway"
restart: unless-stopped
rpc_test:
build:
context: ./utils/rpcs/test
dockerfile: Dockerfile
command: gunicorn --workers 1 --threads 100 --bind 0.0.0.0:8080 'main:create_app()' --access-logfile '-' --error-logfile '-'
restart: unless-stopped
rpc_moodle:
build:
context: ./utils/rpcs/moodleAPI
dockerfile: Dockerfile
command: gunicorn --workers 1 --threads 100 --bind 0.0.0.0:8081 'main:create_app()' --access-logfile '-' --error-logfile '-'
restart: unless-stopped
rpc_pdf:
build:
context: ./utils/rpcs/pdf
dockerfile: Dockerfile
command: gunicorn --workers 1 --threads 100 --bind 0.0.0.0:8082 'main:create_app()' --access-logfile '-' --error-logfile '-'
restart: unless-stopped