Skip to content

Commit

Permalink
add compose.yaml docker
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoujols committed Dec 15, 2023
1 parent f0e4c64 commit ab3b636
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions TaskFile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ tasks:
start:
desc: "Start"
cmds:
- task: docker-up
- task: ex-start

stop:
Expand Down
36 changes: 36 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit ab3b636

Please sign in to comment.