-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
101 lines (92 loc) · 2.13 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
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
services:
postgresql:
image: postgres:16
env_file:
- .env
redis:
image: redis:6.2.6
ports:
- "6379:6379"
api:
build:
context: .
target: "${MORK_IMAGE_BUILD_TARGET:-development}"
args:
DOCKER_USER: ${DOCKER_USER:-1000}
user: ${DOCKER_USER:-1000}
image: "${MORK_IMAGE_NAME:-mork}:${MORK_IMAGE_TAG:-development}"
env_file:
- .env
ports:
- "${MORK_SERVER_PORT:-8100}:${MORK_SERVER_PORT:-8100}"
command:
- uvicorn
- "mork.api:app"
- "--proxy-headers"
- "--log-config"
- "logging-config.dev.yaml"
- "--host"
- "0.0.0.0"
- "--port"
- "${MORK_SERVER_PORT:-8100}"
- "--reload"
volumes:
- ./src/app:/app
celery:
image: mork:development
command: ["celery", "-A", "mork.celery.celery_app", "worker", "-l", "DEBUG", "-n", "mork@%h"]
env_file:
- .env
ports:
- "5555:5555"
volumes:
- ./src/app:/app
- ./bin/seed_edx_database.py:/opt/src/seed_edx_database.py
depends_on:
- api
- redis
- mailcatcher
- mongo
- mysql
- postgresql
dockerize:
image: jwilder/dockerize
mailcatcher:
image: sj26/mailcatcher:latest
ports:
- "1081:1080"
mail-generator:
image: node:20
user: "${DOCKER_USER:-1000}"
environment:
HOME: /tmp
volumes:
- ".:/app"
working_dir: /app/src/mail
mysql:
image: mysql:5.7
ports:
- "3306:3306"
env_file:
- .env
command: mysqld --character-set-server=utf8 --collation-server=utf8_general_ci
mongo:
image: mongo:3.0.15
ports:
- "27017:27017"
env_file:
- .env
configs:
- source: init-mongo.sh
target: /docker-entrypoint-initdb.d/init-mongo.sh
configs:
init-mongo.sh:
content: |
mongo -u "$MONGO_INITDB_ROOT_USERNAME" -p "$MONGO_INITDB_ROOT_PASSWORD" admin <<EOF
use $MORK_EDX_MONGO_DB_NAME;
db.createUser({
user: "$MORK_EDX_MONGO_DB_USER",
pwd: "$MORK_EDX_MONGO_DB_PASSWORD",
roles: ["readWrite"],
});
EOF