-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
docker-compose.yml
44 lines (41 loc) · 1.32 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
---
version: '3.8'
services:
postgresql-db:
image: postgres:13
ports:
- "5432:5432"
environment:
- POSTGRES_USER=django
- POSTGRES_PASSWORD=passwd123
- POSTGRES_DB=db
mysql-db:
image: mysql:8
ports:
- "3306:3306"
restart: unless-stopped
environment:
- MYSQL_USER=django
- MYSQL_PASSWORD=passwd123
# NOTE: MySQL container entrypoint gives user `${MYSQL_USER}` access
# only to `${MYSQL_DATABASE}` database, so we are setting
# `${MYSQL_DATABASE}` to Django default test database's name to avoid
# overriding `ENTRYPOINT` or `CMD`.
- MYSQL_DATABASE=test_db
- MYSQL_ROOT_PASSWORD=superpasswd123
command: --default-authentication-plugin=mysql_native_password
maria-db:
image: mariadb:10
ports:
- "3307:3306"
restart: unless-stopped
environment:
- MARIADB_USER=django
- MARIADB_PASSWORD=passwd123
# NOTE: MySQL container entrypoint gives user `${MYSQL_USER}` access
# only to `${MYSQL_DATABASE}` database, so we are setting
# `${MYSQL_DATABASE}` to Django default test database's name to avoid
# overriding `ENTRYPOINT` or `CMD`.
- MARIADB_DATABASE=test_db
- MARIADB_ROOT_PASSWORD=superpasswd123
command: --default-authentication-plugin=mysql_native_password