diff --git a/TaskFile.yaml b/TaskFile.yaml index 67c0c94..25fe024 100644 --- a/TaskFile.yaml +++ b/TaskFile.yaml @@ -177,6 +177,7 @@ tasks: start: desc: "Start" cmds: + - task: docker-up - task: ex-start stop: diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..2c5953b --- /dev/null +++ b/compose.yaml @@ -0,0 +1,36 @@ +version: "3" +services: + database: + container_name: edu-web-database + image: mysql:8.0 + command: mysqld --sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION" + platform: linux/amd64 + ports: + - "3306:3306" + restart: always + environment: + MYSQL_DATABASE: app_db + MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' + volumes: + - ./var/dbdata:/var/lib/mysql + phpmyadmin: + container_name: edu-web-pma + image: phpmyadmin/phpmyadmin + ports: + - "8081:80" + environment: + PMA_HOST: database + PMA_PORT: 3306 + PMA_ARBITRARY: 1 + UPLOAD_LIMIT: 1G + MEMORY_LIMIT: 512M + MAX_EXECUTION_TIME: 0 + restart: always + links: + - database + mailer: + container_name: edu-web-mailer + image: schickling/mailcatcher + ports: [ "1025", "1080" ] +volumes: + dbdata: \ No newline at end of file