Skip to content

Commit

Permalink
Removed redundant Docker services mapping to a shared network
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed May 20, 2024
1 parent f1a6a0d commit 1bb843c
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: source-web-console

networks:
source_web_console:
driver: bridge

services:
# https://hub.docker.com/_/redis
redis:
Expand All @@ -14,8 +10,6 @@ services:
volumes:
- ./docker/redis/config:/usr/local/etc/redis
- ./docker/redis/database:/data
networks:
- source_web_console
healthcheck:
test: redis-cli --raw incr ping
retries: 3
Expand All @@ -35,8 +29,6 @@ services:
MARIADB_USER: ${DATABASE_USERNAME}
MARIADB_PASSWORD: ${DATABASE_PASSWORD}
MARIADB_RANDOM_ROOT_PASSWORD: 1
networks:
- source_web_console
healthcheck:
test: healthcheck.sh --su-mysql --connect --innodb_initialized
retries: 3
Expand All @@ -55,8 +47,6 @@ services:
PMA_PORT: ${DATABASE_PORT}
PMA_USER: ${DATABASE_USERNAME}
PMA_PASSWORD: ${DATABASE_PASSWORD}
networks:
- source_web_console
healthcheck:
test: curl -f http://localhost
retries: 3
Expand All @@ -78,8 +68,6 @@ services:
- mariadb
environment:
- WAIT_HOSTS=redis:${REDIS_PORT}, mariadb:${DATABASE_PORT}
networks:
- source_web_console
healthcheck:
test: curl -f http://127.0.0.1:9000/ 2>&1 | grep "Connection reset by peer" || curl -f http://localhost:8000/
retries: 3
Expand Down

0 comments on commit 1bb843c

Please sign in to comment.