-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (60 loc) · 1.28 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
services:
psql:
image: postgis/postgis:14-master
deploy:
resources:
limits:
cpus: ".25"
memory: 4096M
restart: always
ports:
- 5432:5432
volumes:
- pgdata:/var/lib/postgresql/data
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
mysql-db:
image: mysql:8.0.28-debian
deploy:
resources:
limits:
cpus: ".25"
memory: 4096M
restart: always
environment:
MYSQL_DATABASE: ${MYSQL_DB}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
ports:
- 3306:3306
volumes:
- mysqldata:/var/lib/mysql
mongodb:
image: mongo:5.0.6-focal
deploy:
resources:
limits:
cpus: ".25"
memory: 4096M
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: ${DB_USER}
MONGO_INITDB_ROOT_PASSWORD: ${DB_PASSWORD}
MONGO_INITDB_DATABASE: ${MONGO_DB}
DB_USERNAME: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
ports:
- 27017:27017
volumes:
- mongodata:/var/lib/mongodb/data
adminer:
image: adminer
ports:
- 8080:8080
volumes:
pgdata:
mysqldata:
mongodata: