Untitled

Anonymous
plain_text
01/18/2026 1:24 PM
1000 B
10
Indexable
services:
  db:
    image: mariadb:10-focal
    restart: always
    healthcheck:
      test: ['CMD-SHELL', 'mysqladmin ping -h 127.0.0.1 --password="$$(cat /run/secrets/db-password)" --silent']
      interval: 3s
      retries: 5
      start_period: 30s
    volumes:
      - db-data:/var/lib/mysql
    environment:
      - MYSQL_DATABASE=example
      - MYSQL_ROOT_PASSWORD_FILE=/run/secrets/db-password
    expose:
      - 3306
      - 33060

  backend:
    build: .
    restart: always
    ports:
      - 8000:8000
    depends_on:
      db:
        condition: service_healthy
    volumes:
      - ./backend_logs:/tmp/logs


  proxy:
    build: proxy
    restart: always
    ports:
      - 80:80
    depends_on:
      - backend

volumes:
  db-data:
Editor is loading...
Leave a Comment