docker-compose.yml 396 B

123456789101112131415161718192021222324252627
  1. version: "3.3"
  2. services:
  3. app:
  4. build: ../
  5. ports:
  6. - 3000:3000
  7. environment:
  8. - DB_HOST=db
  9. - DB_PORT=3306
  10. db:
  11. image: mariadb
  12. command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
  13. restart: always
  14. volumes:
  15. - db:/var/lib/mysql
  16. - ./sql:/docker-entrypoint-initdb.d
  17. env_file:
  18. - db.env
  19. volumes:
  20. db: