Skip to content

Commit

Permalink
Merge pull request #296 from silinternational/rm-data
Browse files Browse the repository at this point in the history
remove the data container from Docker Compose environment
  • Loading branch information
briskt authored Nov 21, 2024
2 parents 81fc511 + 4a792f5 commit dad8108
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion actions-services.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
db:
image: mariadb:latest
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: test
Expand Down
28 changes: 10 additions & 18 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
services:
data:
image: silintl/data-volume:latest
volumes:
- ./application:/data
user: "${DOCKER_UIDGID}"

db:
image: mariadb:latest
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: pwmgr
MYSQL_USER: idpmgmt
MYSQL_PASSWORD: idpmgmt

testDb:
image: mariadb:latest
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: test
Expand All @@ -32,8 +27,8 @@ services:

api:
build: ./
volumes_from:
- data
volumes:
- ./application:/data
ports:
- "51155:80"
depends_on:
Expand All @@ -45,8 +40,8 @@ services:

apitest:
build: ./
volumes_from:
- data
volumes:
- ./application:/data
depends_on:
- testDb
- zxcvbn
Expand All @@ -63,9 +58,8 @@ services:

unittest:
build: ./
volumes_from:
- data
volumes:
- ./application:/data
- ./dockerbuild/dev-ldap.conf:/etc/ldap/ldap.conf
depends_on:
- testDb
Expand All @@ -82,9 +76,8 @@ services:

integrationtest:
build: ./
volumes_from:
- data
volumes:
- ./application:/data
- ./dockerbuild/dev-ldap.conf:/etc/ldap/ldap.conf
depends_on:
- testDb
Expand All @@ -102,9 +95,8 @@ services:

cli:
build: ./
volumes_from:
- data
volumes:
- ./application:/data
- ${COMPOSER_CACHE_DIR}:/composer
working_dir: /data
user: "${DOCKER_UIDGID}"
Expand Down Expand Up @@ -153,7 +145,7 @@ services:
image: wcjr/zxcvbn-api:1.1.0

brokerDb:
image: mariadb:latest
image: mariadb:10
environment:
MYSQL_ROOT_PASSWORD: r00tp@ss!
MYSQL_DATABASE: broker
Expand Down

0 comments on commit dad8108

Please sign in to comment.