forked from utopia-php/database
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
125 lines (115 loc) · 2.57 KB
/
docker-compose.yml
File metadata and controls
125 lines (115 loc) · 2.57 KB
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
services:
tests:
container_name: tests
image: databases-dev
build:
context: .
args:
DEBUG: true
networks:
- database
volumes:
- ./bin:/usr/src/code/bin
- ./src:/usr/src/code/src
- ./tests:/usr/src/code/tests
- ./dev:/usr/src/code/dev
- ./phpunit.xml:/usr/src/code/phpunit.xml
- ./dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- /var/run/docker.sock:/var/run/docker.sock
- ./docker-compose.yml:/usr/src/code/docker-compose.yml
environment:
PHP_IDE_CONFIG: serverName=tests
adminer:
image: adminer
container_name: utopia-adminer
restart: always
ports:
- "8700:8080"
networks:
- database
postgres:
image: postgres:16.4
container_name: utopia-postgres
networks:
- database
ports:
- "8701:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
postgres-mirror:
image: postgres:16.4
container_name: utopia-postgres-mirror
networks:
- database
ports:
- "8702:5432"
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
mariadb:
image: mariadb:10.11
container_name: utopia-mariadb
command: mariadbd --max_allowed_packet=1G
networks:
- database
ports:
- "8703:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
mariadb-mirror:
image: mariadb:10.11
container_name: utopia-mariadb-mirror
command: mariadbd --max_allowed_packet=1G
networks:
- database
ports:
- "8704:3306"
environment:
- MYSQL_ROOT_PASSWORD=password
mysql:
image: mysql:8.0.41
container_name: utopia-mysql
networks:
- database
ports:
- "8706:3307"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: default
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_TCP_PORT: 3307
cap_add:
- SYS_NICE
mysql-mirror:
image: mysql:8.0.41
container_name: utopia-mysql-mirror
networks:
- database
ports:
- "8707:3307"
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: default
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_TCP_PORT: 3307
cap_add:
- SYS_NICE
redis:
image: redis:7.4.1-alpine3.20
container_name: utopia-redis
ports:
- "8708:6379"
networks:
- database
redis-mirror:
image: redis:7.4.1-alpine3.20
container_name: utopia-redis-mirror
ports:
- "8709:6379"
networks:
- database
networks:
database: