-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (40 loc) · 911 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (40 loc) · 911 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
41
42
43
name: orm-docker
version: "3.8"
services:
mariadb:
container_name: mariadb
image: mariadb:latest
environment:
MARIADB_DATABASE: test_db
MARIADB_USER: tester
MARIADB_PASSWORD: password
MARIADB_ROOT_PASSWORD: password
ports:
- "3000:3306"
volumes:
- mariadb_data:/var/lib/mariadb/data
mysqldb:
image: mysql:latest
environment:
MYSQL_USER: 'tester'
MYSQL_PASSWORD: 'password'
MYSQL_DATABASE: test_db
MYSQL_ROOT_PASSWORD: password
ports:
- "3001:3306"
volumes:
- mysqldb_data:/var/lib/mysql_random/data
postgresdb:
image: postgres:latest
environment:
POSTGRES_USER: 'tester'
POSTGRES_PASSWORD: 'password'
POSTGRES_DB: test_db
ports:
- "3002:5432"
volumes:
- postgresdb_data:/var/lib/psql/data
volumes:
mariadb_data:
mysqldb_data:
postgresdb_data: