-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.macos.yml
138 lines (128 loc) · 3.43 KB
/
docker-compose.macos.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
# Use root/example as user/password credentials
# docker build -f dockermysql.yml
# COMMAND: docker-compose -f dockermysql.yml up -d
name: docker-compose-macos
services:
# dbadminer:
# build:
# context: ./
# dockerfile: ./adminer.dockerfile
# image: adminer:1.0.0fd
# container_name: dbadminer
# restart: always
# ports:
# - 81:8080
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
# azurestorage:
# image: mcr.microsoft.com/azure-storage/azurite
# container_name: localazurite
# restart: always
# ports:
# - 10001:10001
# - 10000:10000
# 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
# # - 1401:1401
# # - 1434:1433
# environment:
# TZ: America/Managua
# ACCEPT_EULA: "Y"
# MSSQL_SA_PASSWORD: StrongPassword@07
# MSSQL_PID: Developer
# MSSQL_AGENT_ENABLED: 1
postgres:
image: postgres:15.1-bullseye
container_name: localpostgres
ports:
- 5432:5432
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: example123
PGDATA: /data/postgres
volumes:
- ~/containers_data/postgres-15.1:/data/postgres
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-4.0.26:/data/db
ports:
- 27017:27017
# mongo:
# image: 'bitnami/mongodb:5.0.15'
# container_name: localmongo
# restart: always
# environment:
# - MONGODB_ADVERTISED_HOSTNAME=127.0.0.1
# - MONGODB_REPLICA_SET_MODE=primary
# - MONGODB_ROOT_USER=root
# - MONGODB_ROOT_PASSWORD=123456
# - MONGODB_REPLICA_SET_KEY=replicasetkey123
# ports:
# - 27018:27017
# volumes:
# - /Users/buster95/containers_data/mongo-5.0.15:/bitnami/mongodb'
# mongodb:
# image: mongo:5.0.15
# container_name: localmongo
# hostname: localmongo
# restart: always
# environment:
# MONGO_INITDB_ROOT_USERNAME: root
# MONGO_INITDB_ROOT_PASSWORD: 123456
# MONGO_REPLICA_SET_MODE: primary
# MONGO_REPLICA_SET_NAME: rs0
# volumes:
# - ~/containers_data/mongo-5.0.15:/data/db
# - ./mongo-keyfile:/opt/keyfile
# ports:
# - 27017:27017
# healthcheck:
# test: test $$(echo "rs.initiate().ok || rs.status().ok" | mongo -u $${MONGO_INITDB_ROOT_USERNAME} -p $${MONGO_INITDB_ROOT_PASSWORD} --quiet) -eq 1
# interval: 10s
# start_period: 30s
# command: "--bind_ip_all --keyFile /opt/keyfile/keyfile --replSet rs0"
redis:
image: redis:6.2.5-alpine
container_name: localredis
restart: always
environment:
REDIS_PASSWORD: 123456
ports:
- 6379:6379
volumes:
- data-redis:/data
# oracle:
# build:
# context: ./oracle
# dockerfile: ./Dockerfile
# image: oracle-19.3.0c
# container_name: localoracle
# restart: always
# ports:
# - 1521:1521
volumes:
data-redis:
# data-mssql:
# data-mysql: