tilt up
Last active
January 23, 2025 14:41
-
-
Save jessireedev/60d940dc2c6bba2dcf443b778c74bfe6 to your computer and use it in GitHub Desktop.
nest-docker usage
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
| services: | |
| postgres: | |
| image: postgres:15 | |
| restart: always | |
| environment: | |
| POSTGRES_PASSWORD: secretpassword | |
| POSTGRES_USER: user | |
| POSTGRES_DB: local | |
| volumes: | |
| - nest_docker_postgres_data:/var/lib/postgresql/data | |
| ports: | |
| - '5432:5432' | |
| nest-docker: | |
| image: jessireedev/nest-docker:latest | |
| ports: | |
| - '3000:3000' | |
| environment: | |
| DB_HOST: postgres | |
| DB_PORT: 5432 | |
| DB_USERNAME: user | |
| DB_PASSWORD: secretpassword | |
| DB_DATABASE: local | |
| volumes: | |
| nest_docker_postgres_data: |
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
| load('ext://restart_process', 'docker_build_with_restart') | |
| docker_compose("docker-compose.yml") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment