commit d232ba80603042d1503e29b667146f0accddddf5 Author: Hermes Axion Date: Mon Jun 15 19:24:32 2026 +0200 Add docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..049908e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,27 @@ +version: '3.8' + +services: + db: + image: mariadb:latest + restart: always + environment: + MYSQL_ROOT_PASSWORD: rootpassword + MYSQL_DATABASE: app_db + MYSQL_USER: app_user + ports: + - "3306:3306" + volumes: + - db_data:/var/lib/mysql + + web: + image: nginx:latest + restart: always + ports: + - "80:80" + volumes: + - ./web_app:/usr/share/nginx/html + depends_on: + - db + +volumes: + db_data: \ No newline at end of file