-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 805 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 805 Bytes
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
version: '3.8'
services:
mongodb:
image: mongo:7.0
container_name: benchmark-mongodb
restart: always
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_DATABASE: benchmark
volumes:
- mongodb_data:/data/db
networks:
- benchmark-network
postgresql:
image: postgres:16
container_name: benchmark-postgresql
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: password
POSTGRES_DB: benchmark
volumes:
- postgresql_data:/var/lib/postgresql/data
networks:
- benchmark-network
volumes:
mongodb_data:
postgresql_data:
networks:
benchmark-network:
driver: bridge