|
@@ -33,6 +33,8 @@ services:
|
|
|
depends_on:
|
|
depends_on:
|
|
|
- mariadb
|
|
- mariadb
|
|
|
- redis
|
|
- redis
|
|
|
|
|
+ networks:
|
|
|
|
|
+ - inventory-network
|
|
|
healthcheck:
|
|
healthcheck:
|
|
|
test: ["CMD", "curl", "-f", "http://localhost/api/company.php"]
|
|
test: ["CMD", "curl", "-f", "http://localhost/api/company.php"]
|
|
|
interval: 30s
|
|
interval: 30s
|
|
@@ -54,6 +56,8 @@ services:
|
|
|
volumes:
|
|
volumes:
|
|
|
- ${DB_LOCATION}/mariadb_data:/var/lib/mysql
|
|
- ${DB_LOCATION}/mariadb_data:/var/lib/mysql
|
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
|
|
|
+ networks:
|
|
|
|
|
+ - inventory-network
|
|
|
healthcheck:
|
|
healthcheck:
|
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD:-root_password}"]
|
|
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p${MYSQL_ROOT_PASSWORD:-root_password}"]
|
|
|
interval: 30s
|
|
interval: 30s
|
|
@@ -71,6 +75,8 @@ services:
|
|
|
- ${REDIS_LOCATION}/redis_data:/data
|
|
- ${REDIS_LOCATION}/redis_data:/data
|
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
|
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD:-redis_password}
|
|
command: redis-server --appendonly yes --requirepass ${REDIS_PASSWORD:-redis_password}
|
|
|
|
|
+ networks:
|
|
|
|
|
+ - inventory-network
|
|
|
healthcheck:
|
|
healthcheck:
|
|
|
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
|
|
test: ["CMD", "redis-cli", "--raw", "incr", "ping"]
|
|
|
interval: 30s
|
|
interval: 30s
|