Advertisement
Guest User

YAML from Dev Ops Guide

a guest
Jan 11th, 2022
48
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.5'
  2.  
  3. services:
  4. server:
  5. image: cortezaproject/corteza:${VERSION}
  6. restart: always
  7. env_file: [ .env ]
  8. depends_on: [ db ]
  9. ports: [ "127.0.0.1:18080:80" ]
  10.  
  11. db:
  12. # MySQL Database
  13. # See https://hub.docker.com/r/percona/percona-server for details
  14. image: percona:8.0
  15. restart: always
  16. environment:
  17. MYSQL_DATABASE: dbname
  18. MYSQL_USER: dbuser
  19. MYSQL_PASSWORD: dbpass
  20. # get the random generated password by running: docker-compose logs db | grep "GENERATED ROOT PASSWORD"
  21. MYSQL_RANDOM_ROOT_PASSWORD: random
  22. healthcheck: { test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"], timeout: 20s, retries: 10 }
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement