forked from Fundefir-dev/commons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
122 lines (121 loc) · 2.75 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
version: "3.4"
services:
rabbit:
image: "rabbitmq:management-alpine"
container_name: "rabbit_global"
ports:
- "32778:4369"
- "32777:5671"
- "5672:5672"
- "32775:15671"
- "15672:15672"
- "32774:25672"
networks:
- base-commons
restart: always
mysql_global:
image: mysql:8
container_name: mysql_global
command:
[
"mysqld",
"--character-set-server=utf8",
"--default-authentication-plugin=mysql_native_password",
]
volumes:
- ./.data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
ports:
- "3306:3306"
- "33060:33060"
networks:
- base-commons
restart: always
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8080:80"
environment:
PMA_HOSTS: mysql_global
networks:
- base-commons
restart: always
postgres_global_9:
image: "postgres:9.6"
environment:
POSTGRES_PASSWORD: postgres
container_name: "postgres_global_9"
ports:
- "5435:5432"
volumes:
- postgres_9:/var/lib/postgresql/data
networks:
- base-commons
restart: always
postgres_global_10:
image: "postgres:10"
environment:
POSTGRES_PASSWORD: postgres
container_name: "postgres_global_10"
ports:
- "5433:5432"
volumes:
- postgres_10:/var/lib/postgresql/data
networks:
- base-commons
restart: always
postgres_global_12:
image: "postgres:12"
environment:
POSTGRES_PASSWORD: postgres
container_name: "postgres_global_12"
ports:
- "5434:5432"
volumes:
- postgres_12:/var/lib/postgresql/data
networks:
- base-commons
restart: always
postgres_global_13:
image: "postgres:13.3"
environment:
POSTGRES_PASSWORD: postgres
container_name: "postgres_global_13"
ports:
- "5432:5432"
volumes:
- postgres_13:/var/lib/postgresql/data
networks:
- base-commons
restart: always
pgadmin_global:
image: dpage/pgadmin4:6.4
container_name: "pgadmin_global"
user: root
# depends_on:
# - postgres_global_9
ports:
- "5555:80"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION: "True"
# PGADMIN_CONFIG_LOGIN_BANNER: "Authorised_only_user"
PGADMIN_CONFIG_CONSOLE_LOG_LEVEL: 10
PGADMIN_CONFIG_SERVER_MODE: "False"
volumes:
- pgadmin4:/var/lib/pgadmin
- ./.backups/backups:/var/lib/pgadmin/storage/pgadmin4_pgadmin.org
networks:
- base-commons
restart: always
volumes:
pgadmin4:
postgres_13:
postgres_12:
postgres_10:
postgres_9:
networks:
base-commons:
driver: "bridge"