-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
49 lines (48 loc) · 1.27 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
---
# docker compose -f docker-compose.yml up -d
version: "2.1"
services:
mysqldb:
image: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password --bind-address=0.0.0.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: melty
MYSQL_ROOT_HOST: '%'
ports:
- 3306:3306
mysqldb_ssh:
image: mysql
restart: always
command: --default-authentication-plugin=mysql_native_password --bind-address=0.0.0.0
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: melty
MYSQL_ROOT_HOST: '%'
networks:
inner:
ipv4_address: 10.5.0.5
ssh:
image: ghcr.io/linuxserver/openssh-server:9.1_p1-r2-ls106 # This docker repo has added breaking changes a lot in the last month, pinning this.
hostname: openssh-server
environment:
- PUID=1000
- PGID=1000
- PUBLIC_KEY_FILE=/config/ssh_host_keys/ssh_host_rsa_key.pub
- SUDO_ACCESS=true
- PASSWORD_ACCESS=false
- USER_NAME=melty
volumes:
- ./ssh_tunnel/ssh-server-config:/config/ssh_host_keys:ro
ports:
- "127.0.0.1:2223:2222"
networks:
- inner
networks:
inner:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16
gateway: 10.5.0.1