Skip to content

Commit

Permalink
Added SQL mariadb as aasportal-index
Browse files Browse the repository at this point in the history
  • Loading branch information
fpethig committed Apr 8, 2024
1 parent 3144fb7 commit 5a20185
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ services:
- MONGO_INITDB_ROOT_PASSWORD=aas-server
- MONGO_INITDB_DATABASE=aasportal-users

mysql:
image: mariadb:latest
container_name: aasportal-index
command: --default-authentication-plugin=mysql_native_password
volumes:
- ./projects/aasportal-index/schema.sql:/docker-entrypoint-initdb.d/1.sql
- sqldata:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: db>D6~M$4§Y:sChh
MYSQL_DATABASE: aas-index
MYSQL_USER: aas-server
MYSQL_PASSWORD: aas-server
ports:
- 3306:3306

aas-server:
container_name: aas-server
build:
Expand All @@ -30,6 +46,7 @@ services:
dockerfile: ./Dockerfile.aas-portal
restart: always
ports:
- "80:80"
- 80:80
volumes:
mongodata:
mongodata:
sqldata:

0 comments on commit 5a20185

Please sign in to comment.