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
services:
mssql:
image: mcr.microsoft.com/mssql/server:2019-latest
ports:
- 1433:1433
environment:
- MSSQL_SA_PASSWORD=My@Test@Password1
command:
mariadb:
image: mariadb
environment:
MYSQL_ROOT_PASSWORD: my-secret-pw
MYSQL_DATABASE: test_db
ports:
- 3306:3306
# postgres:
# image: postgres:15
# ports:
# - "5432:5432"
# environment:
# POSTGRES_DB: test
# POSTGRES_USER: test
# POSTGRES_PASSWORD: test
dev:
build:
context: ./docker
dockerfile: Dockerfile.dev
volumes:
- .:/workspace:cached
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
# Allows accessing dbs through the port forwardings. dev container behaves like host for networking
network_mode: host