This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require('mongoose'); | |
mongoose.connect('mongodb://root:[email protected]:PORT/cats_db', { | |
useNewUrlParser: true, | |
authSource: 'admin', | |
}); | |
const Cat = mongoose.model('Cat', { name: String }); | |
const kitty = new Cat({ name: 'Kitty' }); | |
kitty.save().then(() => console.log('Cat added.')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"volume": "/app/public" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jrottenberg/ffmpeg:4.0-ubuntu | |
FROM liararepo/node-platform | |
# Copy ffmpeg bins from first image | |
COPY --from=0 / / |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process.on('unhandledRejection', error => { | |
console.error('unhandledRejection', error); | |
process.exit(1); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM creativearea/libvips:8.3.3-0 | |
FROM liararepo/node-platform | |
RUN apt-get update && apt-get install -y build-essential curl |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM liararepo/node-platform | |
RUN apt-get update && apt-get install -y PACKAGE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM thecodingmachine/php:7.2-v2-apache-node8 | |
ENV APACHE_DOCUMENT_ROOT=/public \ | |
TEMPLATE_PHP_INI=production \ | |
LOG_CHANNEL=errorlog \ | |
PHP_EXTENSIONS="amqp bcmath calendar exif gd gettext \ | |
gmp gnupg igbinary imagick imap intl ldap mcrypt memcached \ | |
mongodb pcntl pdo_dblib pdo_pgsql pgsql sockets yaml" | |
USER root |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"platform": "docker", | |
"port": 80, | |
"project": "my-taak" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PMA_HOST=s1.liara.ir | |
PMA_PORT=31889 | |
MYSQL_ROOT_PASSWORD=secret | |
PMA_ABSOLUTE_URI=https://test-phpmyadmin.liara.run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"port": 8000, | |
"platform": "docker" | |
} |