-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
144 lines (135 loc) · 4.02 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Use root/example as user/password credentials
# docker build -f dockermysql.yml
# COMMAND: docker-compose -f dockermysql.yml up -d
version: "3.7"
services:
dbadminer:
build:
context: ./
dockerfile: ./adminer.dockerfile
image: adminer:1.0.0fd
container_name: dbadminer
restart: always
ports:
- 81:8080
# postgres:
# image: postgres:9.6.17
# container_name: localpostgres
# restart: always
# user: postgres
# environment:
# POSTGRES_HOST_AUTH_METHOD: trust
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: 123456
# # POSTGRES_DB: db
# # PGDATA: /data
# ports:
# - 5432:5432
# volumes:
# # - C:\containers_data\postgres\data:/data
# - C:\containers_data\postgres\data:/var/lib/postgresql/data
# # - C:\containers_data\postgres:/var/lib/postgresql
# mysql:
# image: mysql:8.0.17
# container_name: localmysql
# command: --default-authentication-plugin=mysql_native_password
# restart: always
# environment:
# MYSQL_ROOT_PASSWORD: 123456
# ports:
# - 3306:3306
# volumes:
# - /Users/buster95/containers_data/mysql:/var/lib/mysql # MACOS
# # - /home/buster/containers_data/mysql:/var/lib/mysql
# # - C:\containers_data\mysql:/var/lib/mysql # WINDOWS
mariadb:
image: mariadb:10.6.3-focal
container_name: localmariadb
restart: always
environment:
MYSQL_ROOT_PASSWORD: 123456
ports:
- 3306:3306
volumes:
- /Users/buster95/containers_data/mysql:/var/lib/mysql # MACOS
# mssql:
# # image: microsoft/mssql-server-linux:2017-CU13
# # image: mcr.microsoft.com/mssql/server:2017-CU13
# # image: mcr.microsoft.com/mssql/server:2017-CU20-ubuntu-16.04
# # image: mcr.microsoft.com/mssql/server:2017-CU24-ubuntu-16.04
# image: mcr.microsoft.com/mssql/server:2019-latest
# # build:
# # context: ./
# # dockerfile: ./mssql.dockerfile
# # image: buster95/mssql:2019-CU2-ubuntu-16.04
# # user: root
# # ls -laR /var/opt/mssql
# # docker run -it --rm -v C:\containers_data\mssql:/var/opt/mssql --user root mcr.microsoft.com/mssql/server:2019-CU2-ubuntu-16.04 bash
# # command: >
# # bash -c "chgrp -R 0 /var/opt/mssql
# # && chmod -R g=u /var/opt/mssql
# # && chown -R 10001:0 /var/opt/mssql
# # && exit"
# container_name: localmssql
# restart: always
# user: root
# environment:
# TZ: America/Managua
# ACCEPT_EULA: "Y"
# SA_PASSWORD: StrongPassword@07
# MSSQL_PID: Developer
# MSSQL_AGENT_ENABLED: 1
# cap_add:
# - SYS_PTRACE
# ports:
# - 1433:1433
# # - 1434:1433
# volumes:
# # - /Users/buster95/containers_data/mssql:/var/opt/mssql/data # THIS CONFIG FOR MACOS
# # - C:\containers_data\mssql:/var/opt/mssql/data # THIS CONFIG FOR WINDOWS
# - data-mssql:/var/opt/mssql/data # THIS CONFIG FOR DOCKER VOLUMES
# # - /home/buster/containers_data/mssql:/var/opt/mssql
# # - C:\containers_data\mssql:/var/opt/mssql
azuresql:
image: mcr.microsoft.com/azure-sql-edge:1.0.4
container_name: localazuresql
user: root
restart: always
cap_add:
- SYS_PTRACE
ports:
- 1433:1433
- 1434:1433
- 1401:1401
environment:
TZ: America/Managua
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: StrongPassword@07
MSSQL_PID: Developer
MSSQL_AGENT_ENABLED: 1
mongodb:
image: mongo:4.0.26
container_name: localmongo
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: 123456
volumes:
- /Users/buster95/containers_data/mongo:/data/db # MACOS
# - C:\containers_data\mongo:/data/db # WINDOWS
ports:
- 27017:27017
redis:
image: redis:6.2.5-alpine
container_name: localredis
restart: always
environment:
REDIS_PASSWORD: 123456
ports:
- 6379:6379
volumes:
- data-redis:/data
volumes:
data-redis:
# data-mssql:
# data-mysql: