Created
March 8, 2024 04:44
-
-
Save christianjjc/6696901c63e27f406a372ab26532fce1 to your computer and use it in GitHub Desktop.
DOCKER EJEMPLOS
This file contains 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
docker run --name world-db ` | |
--env MARIADB_USER=example-user ` | |
--env MARIADB_PASSWORD=user-password ` | |
--env MARIADB_ROOT_PASSWORD=root-secret-password ` | |
--env MARIADB_DATABASE=world-db -dp 3306:3306 ` | |
--volume world-db:/var/lib/mysql ` | |
--network world-app ` | |
mariadb:jammy | |
docker container run ` | |
--name phpmyadmin ` | |
-d ` | |
-e PMA_ARBITRARY=1 ` | |
-dp 8080:80 ` | |
--network world-app ` | |
phpmyadmin:5.2.0-apache | |
MSYS_NO_PATHCONV=1 docker container run \ | |
--name nest-app \ | |
-w /app \ | |
-p 8081:3000 \ | |
-v "$(pwd)":/app \ | |
node:16-alpine3.16 \ | |
sh -c "npm install && npm run start:dev" | |
MSYS_NO_PATHCONV=1 docker container run ` | |
--name nest-app ` | |
-w /app ` | |
-dp 8081:3000 ` | |
-v "$(pwd)":/app ` | |
node:16-alpine3.16 ` | |
sh -c "npm install && npm run start:dev" | |
MSYS_NO_PATHCONV=1 docker container run \ | |
--name nest-app \ | |
-w /app \ | |
-dp 8081:3000 \ | |
-v "$(pwd)":/app \ | |
node:16-alpine3.16 \ | |
sh -c "yarn install && yarn start:dev" | |
docker container run -d \ | |
--name postgres-db \ | |
-e POSTGRES_PASSWORD=123456 \ | |
-v postgres-db:/var/lib/postgresql/data \ | |
postgres:15.1 | |
mongodb://cjjc:123456@localhost:27017 | |
$ docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 -t christianjjc/cron-ticker --push . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment