doprax.yaml

 Services, volumes, and environment variables that have been declared in this file will be automatically created and added to this project.

Example doprax.yaml file:

Check out this repository to see how you can use doprax.yaml dependency file to create services and configs. Here a new MySQL instance will be created and proper environment variables and volumes will be added. 

GitHub Repo


volumes:
  - name:  static
    mount: /app_data/static/
envs:
  - DB_PASS: PASSWORD
  - DB_NAME: mydb
  - DB_HOST: mysql

services:
  - mysql:
      tag: 5.6
      volumes:
        - name: mysql_vol
          mount: /var/lib/mysql/
      envs:
        - MYSQL_ROOT_PASSWORD: PASSWORD
        - MYSQL_DATABASE: mydb
        - MYSQL_USER: dbuser01
        - MYSQL_PASSWORD: PASSWORD
  

Please do tell us, did you find the content above helpful?