forked from openlibhums/janeway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
106 lines (97 loc) · 2.63 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
102
103
104
105
106
version: "3"
services:
janeway-postgres:
image: postgres:15
volumes:
- ./db/postgres-data:/var/lib/postgresql/data
ports:
- "${DB_PORT}"
environment:
- "POSTGRES_PASSWORD=${DB_PASSWORD}"
- "POSTGRES_USER=${DB_USER}"
- "POSTGRES_DB=${DB_NAME}"
depends_on:
- janeway-pgadmin
janeway-pgadmin:
image: dpage/pgadmin4
user: root
ports:
- "${PGADMIN_PORT}:80"
volumes:
- ./db/pgadmin:/var/lib/pgadmin
environment:
- "PGADMIN_DEFAULT_PASSWORD=${DB_PASSWORD}"
- PG_ADMIN_LISTEN_ADDRESS=0.0.0.0
- GUNICORN_THREADS=2
- PGADMIN_SERVER_JSON_FILE=/var/lib/pgadmin/servers.json
- PGADMIN_CONFIG_SERVER_MODE=False
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
janeway-mysql:
image: mysql:8.3
volumes:
- ./db/mysql-data:/var/lib/mysql
ports:
- "${DB_PORT}"
environment:
- MYSQL_ROOT_PASSWORD=root
- "MYSQL_PASSWORD=${DB_PASSWORD}"
- "MYSQL_USER=${DB_USER}"
- "MYSQL_DATABASE=${DB_NAME}"
janeway-mariadb:
image: mariadb/server:10.2.22
volumes:
- ./db/mariadb-data:/var/lib/mysql
ports:
- "${DB_PORT}"
environment:
- MYSQL_ROOT_PASSWORD=root
- "MYSQL_PASSWORD=${DB_PASSWORD}"
- "MYSQL_USER=${DB_USER}"
- "MYSQL_DATABASE=${DB_NAME}"
start_dependencies:
image: dadarek/wait-for-dependencies
depends_on:
- "janeway-${DB_VENDOR}"
- janeway-debug-smtp
command: "janeway-${DB_VENDOR}:${DB_PORT}"
janeway-web:
build:
context: .
dockerfile: dockerfiles/Dockerfile
volumes:
- ./src:/vol/janeway/src
- ./lib:/vol/janeway/lib
- ./logs:/vol/janeway/logs
- ./db/janeway.sqlite3:/db/janeway.sqlite3
ports:
- "${JANEWAY_PORT}:8000"
environment:
- DB_VENDOR
- DB_HOST
- DB_PORT
- DB_PASSWORD
- DB_USER
- DB_NAME
- PYTHONDONTWRITEBYTECODE=yes
- JANEWAY_SETTINGS_MODULE=core.dev_settings
- NOSE_INCLUDE_EXE=1
- JANEWAY_EMAIL_BACKEND
- JANEWAY_EMAIL_HOST
- JANEWAY_EMAIL_PORT
- JANEWAY_EMAIL_USE_TLS
depends_on:
- "start_dependencies"
cap_add:
- SYS_PTRACE
janeway-sqlite:
build:
context: .
dockerfile: dockerfiles/Dockerfile
command: /bin/bash
volumes:
- ./db/janeway.sqlite:/var/lib/janeway.sqlite
janeway-debug-smtp:
# Use same python as janeway-web to reduce the number of images
image: python:3.8
entrypoint: python -u -m smtpd -c DebuggingServer -n 0.0.0.0:1025