-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathdocker-compose.yml
47 lines (43 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
41
42
43
44
45
46
47
# see https://docs.docker.com/compose/compose-file/compose-versioning/
version: "3.5" # specify docker-compose version, v3.5 is compatible with docker 17.12.0+
# Define the services/containers to be run
services:
postgres:
image: postgres
ports:
- "5432:5432"
restart: always
environment:
POSTGRES_PASSWORD: password
POSTGRES_DB: blogdb
POSTGRES_USER: user
volumes:
- ./data/postgresql:/var/lib/postgresql
- ./pg-initdb.d:/docker-entrypoint-initdb.d
mysql:
image: mysql:9.1
ports:
- "3306:3306"
# command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: mysecret
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_DATABASE: blogdb
volumes:
- ./data/mysql:/var/lib/mysql
# - ./mysql-initdb.d:/docker-entrypoint-initdb.d
# no entrypoint-init scripts, see: https://github.com/Microsoft/mssql-docker/issues/11
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
- SA_PASSWORD=p@ssw0rd
- ACCEPT_EULA=Y
ports:
- 1433:1433
mongodb:
image: mongo
volumes:
- ./data/mongo:/data/db
ports:
- "27017:27017"