Last active
March 28, 2021 06:27
-
-
Save dabasajay/553bf5538e48a388e837037b3a36b2ca to your computer and use it in GitHub Desktop.
others/ | desc: docker-compose.yml file
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
version: '3.7' | |
services: | |
redis: | |
image: 'redis' | |
ports: | |
# Host : Container | |
- 6379:6379 | |
volumes: | |
- './host/data/redis:/var/lib/redis/data' | |
mongodb: | |
image : 'mongo' | |
volumes: | |
- './host/data/mongodb:/var/lib/mongodb/data' | |
ports: | |
- 27017:27017 | |
postgres: | |
image: 'postgres' | |
environment: | |
POSTGRES_DB: 'test-db' | |
POSTGRES_USER: 'root' | |
POSTGRES_PASSWORD: '<password>' | |
ports: | |
- 5432:5432 | |
volumes: | |
- './host/data/postgres:/var/lib/postgresql/data' | |
mysql: | |
image: 'mysql:5.7' | |
restart: always | |
environment: | |
MYSQL_DATABASE: 'carespace' | |
MYSQL_USER: '${MYSQL_USER}' | |
MYSQL_PASSWORD: '${MYSQL_PASSWORD}' | |
MYSQL_ROOT_PASSWORD: '${MYSQL_ROOT_PASSWORD}' | |
ports: | |
- '3306:3306' | |
volumes: | |
- './host/data/mysql:/var/lib/mysql/data' |
Author
dabasajay
commented
Mar 21, 2021
- https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-18-04
- https://www.digitalocean.com/community/tutorials/how-to-install-docker-compose-on-ubuntu-18-04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment