version: "3" services: app: image: ${REPO_OWNER_LOWER}/${REPO_NAME_KEBAB}:latest container_name: ${REPO_NAME_KEBAB}-app restart: unless-stopped ports: - "8080:8000" links: - database env_file: .env database: image: linuxserver/mariadb:latest container_name: ${REPO_NAME_KEBAB}-db restart: unless-stopped volumes: #- "./database:/var/lib/mysql" - "database:/var/lib/mysql" env_file: .env_db # Uncomment if needed #healthcheck: # test: sh -c "mysqladmin ping -u$$$$MYSQL_USER -p$$$$MYSQL_PASSWORD" # interval: 2s # timeout: 3s # retries: 20 # Comment or remove these lines and # edit `volumes` in services->database # if you are going to store # your DB in a directory volumes: database: