Adding database compose
This commit is contained in:
parent
c66bf96175
commit
7f6f9acd0b
20
database-compose.yml
Normal file
20
database-compose.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
mysql:
|
||||||
|
image: mysql:8
|
||||||
|
restart: always
|
||||||
|
env_file: .mysql.env
|
||||||
|
ports:
|
||||||
|
- "3306:3306"
|
||||||
|
volumes:
|
||||||
|
- "/mysql:/var/lib/mysql"
|
||||||
|
|
||||||
|
postgres:
|
||||||
|
image: postgres:17
|
||||||
|
restart: always
|
||||||
|
env_file: .postgres.env
|
||||||
|
ports:
|
||||||
|
- "5432:5432"
|
||||||
|
volumes:
|
||||||
|
- "/postgres:/var/lib/postgresql/data"
|
Loading…
Reference in New Issue
Block a user