-
Notifications
You must be signed in to change notification settings - Fork 66
/
docker-compose.ssh.yml
75 lines (70 loc) · 1.54 KB
/
docker-compose.ssh.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
services:
ssh:
image: rastasheep/ubuntu-sshd:latest
container_name: test-ssh
ports:
- "2222:22"
environment:
- ROOT_PASSWORD=root
networks:
- private-network
- public-network
postgres:
image: postgres:15
container_name: test-postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=users
networks:
- private-network
mysql:
image: mysql:8.0
environment:
MYSQL_USER: myuser
MYSQL_PASSWORD: 5@klkbN#ABC
MYSQL_ROOT_PASSWORD: myuser
MYSQL_DATABASE: mydb
networks:
- private-network
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:
- private-network
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:
- private-network
networks:
private-network:
internal: true # Makes this network inaccessible from outside Docker
public-network: