-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
40 lines (39 loc) · 1.2 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
---
# DO NOT USE IN PRODUCTION.
# Docker Compose file to create a database instances FOR TESTING ONLY. Sensitive settings are saved
# in plain text here and service configurations favor convenience over security.
# DO NOT USE IN PRODUCTION.
#
# Recall that MYSQL_ALLOW_EMPTY_PASSWORD allows empty password for root user.
version: '3'
services:
# mariadb:
# image: mariadb:latest
# ports:
# - '127.0.0.1:3307:3307'
# volumes:
# - ./configs/docker/mariadb/conf.d:/etc/mysql/conf.d:ro
# - ./configs/docker/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
# environment:
# - MYSQL_ALLOW_EMPTY_PASSWORD=yes
# - MYSQL_PASSWORD=tester
# - MYSQL_USER=tester
mysql:
image: mysql:latest
ports:
- '127.0.0.1:3306:3306'
volumes:
- ./configs/docker/mysql/conf.d:/etc/mysql/conf.d:ro
- ./configs/docker/mysql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- MYSQL_PASSWORD=tester
- MYSQL_USER=tester
postgresql:
image: postgres:alpine
ports:
- '127.0.0.1:5432:5432'
environment:
- POSTGRES_PASSWORD=tester
- POSTGRES_USER=tester
...