Skip to content

Commit

Permalink
fix: database environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed May 5, 2021
1 parent c77faa5 commit 91cdf15
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dist
coverage
docs
storybook-static
data/docker/**/data

# local env files
.env.local
Expand Down
11 changes: 11 additions & 0 deletions data/docker/mariadb/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.7'
services:
mariadb:
image: mariadb
restart: always
environment:
- MYSQL_ROOT_PASSWORD=1234
ports:
- 3307:3306
volumes:
- ./data:/var/lib/mysql
10 changes: 10 additions & 0 deletions data/docker/mssql/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3.7'
services:
mssql:
image: mcr.microsoft.com/mssql/server:2017-latest
restart: always
environment:
- ACCEPT_EULA=Y
- 'SA_PASSWORD=yourStrong(!)Password'
ports:
- 1433:1433
11 changes: 11 additions & 0 deletions data/docker/mysql/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3.7'
services:
mysql:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=1234
ports:
- 3306:3306
volumes:
- ./data:/var/lib/mysql
7 changes: 7 additions & 0 deletions data/docker/oracle/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: '3.7'
services:
oracle:
image: jaspeen/oracle-xe-11g
restart: always
ports:
- 1521:1521
18 changes: 18 additions & 0 deletions data/docker/postgres/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3.7'
services:
postgres:
image: postgres
restart: always
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=1234
ports:
- 5432:5432

adminer:
image: adminer
restart: always
ports:
- 8081:8080
links:
- db
8 changes: 8 additions & 0 deletions data/docker/sqlite/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: '3.7'
services:
sqlite3:
image: nouchka/sqlite3:latest
stdin_open: true
tty: true
volumes:
- ./data/:/root/db/

0 comments on commit 91cdf15

Please sign in to comment.