Advertisement
petrikjosef

Untitled

Mar 16th, 2022
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1.  
  2.  
  3. version: "3"
  4.  
  5. services:
  6. app:
  7. build:
  8. context: ./app
  9. container_name: strapi_v4_app
  10. #restart: unless-stopped
  11. environment:
  12. NODE_ENV: production
  13. DATABASE_CLIENT: mysql
  14. DATABASE_HOST: db
  15. DATABASE_PORT: 3306
  16. DATABASE_NAME: pk_admin
  17. DATABASE_USERNAME: root
  18. DATABASE_PASSWORD: root
  19. volumes:
  20. - ./app:/srv/app
  21. ports:
  22. - 127.0.0.1:8000:1337
  23. depends_on:
  24. - db
  25.  
  26. db:
  27. image: mariadb
  28. container_name: strapi_v4_db
  29. #restart: unless-stopped
  30. environment:
  31. MYSQL_HOST: 127.0.0.1
  32. MYSQL_DATABASE: pk_admin
  33. MYSQL_USER: root
  34. MYSQL_PASSWORD: root
  35. volumes:
  36. - ./docker/db:/var/lib/mysql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement