-
Notifications
You must be signed in to change notification settings - Fork 66
/
docker-compose.yml
99 lines (91 loc) · 1.88 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
version: "3.8"
services:
postgres:
image: postgres:12.1-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=users
ports:
- '5432:5432'
networks:
- dblab
mysql:
image: mysql:8.0
environment:
MYSQL_USER: myuser
MYSQL_PASSWORD: 5@klkbN#ABC
MYSQL_ROOT_PASSWORD: myuser
MYSQL_DATABASE: mydb
ports:
- '3306:3306'
networks:
- dblab
oracle:
image: container-registry.oracle.com/database/free:latest
environment:
ORACLE_PWD: password
ports:
- '1521:1521'
networks:
- dblab
mssql:
image: mcr.microsoft.com/mssql/server:2022-latest
environment:
MSSQL_SA_PASSWORD: 5@klkbN#ABC
ACCEPT_EULA: Y
ports:
- '1433:1433'
networks:
- dblab
dblab:
build:
context: .
target: builder
volumes:
- ./:/src/app:z
depends_on:
- postgres
environment:
- DB_HOST=postgres
- DB_USER=postgres
- DB_PASSWORD=password
- DB_NAME=users
- DB_PORT=5432
- DB_DRIVER=postgres
- DB_SCHEMA=public
entrypoint: ["/bin/bash", "./scripts/entrypoint.dev.sh"]
networks:
- dblab
dblab-mysql:
build:
context: .
target: builder
volumes:
- ./:/src/app:z
depends_on:
- mysql
environment:
- DB_HOST=mysql
- DB_USER=myuser
- DB_PASSWORD=5@klkbN#ABC
- DB_NAME=mydb
- DB_PORT=3306
- DB_DRIVER=mysql
entrypoint: ["/bin/bash", "./scripts/entrypoint-mysql.dev.sh"]
networks:
- dblab
dblab-sqlite3:
build:
context: .
target: builder
volumes:
- ./:/src/app:z
environment:
- DB_NAME=db/dblab.db
- DB_DRIVER=sqlite
entrypoint: ["/bin/bash", "./scripts/entrypoint-sqlite3.dev.sh"]
networks:
- dblab
networks:
dblab: