readd networks

This commit is contained in:
max 2024-12-26 07:19:52 +00:00 committed by theycallhermax
parent 803c97fc61
commit 8a37ff2718
No known key found for this signature in database
GPG key ID: 24D2803F3E25BF2D

View file

@ -14,6 +14,8 @@ services:
timeout: 5s timeout: 5s
retries: 3 retries: 3
image: mariadb image: mariadb
networks:
- catask
restart: always restart: always
volumes: volumes:
- ./schema.sql:/docker-entrypoint-initdb.d/1.sql - ./schema.sql:/docker-entrypoint-initdb.d/1.sql
@ -25,6 +27,8 @@ services:
depends_on: depends_on:
mariadb: mariadb:
condition: service_healthy condition: service_healthy
networks:
- catask
ports: ports:
- "8000:8000" - "8000:8000"
volumes: volumes:
@ -35,5 +39,11 @@ services:
source: ./.env source: ./.env
target: /catask/.env target: /catask/.env
networks:
catask:
driver: bridge
driver_opts:
com.docker.network.bridge.host_binding_ipv4: "127.0.0.1"
volumes: volumes:
db-data: db-data: