Last active
March 23, 2022 11:22
-
-
Save rogervila/d07d30e715c59c93ea8a535592bf379e to your computer and use it in GitHub Desktop.
Global services docker-compose.yml file
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
version: "3.8" | |
services: | |
# MySQL Database | |
mysql: | |
image: mysql:8.0 | |
command: --default-authentication-plugin=mysql_native_password | |
restart: always | |
environment: | |
MYSQL_DATABASE: example | |
MYSQL_ROOT_PASSWORD: example | |
ports: | |
- "3306:3306" | |
phpmyadmin: | |
image: phpmyadmin:latest | |
restart: always | |
environment: | |
- PMA_ARBITRARY=1 | |
ports: | |
- "8888:80" | |
depends_on: | |
- mysql | |
# MSSQL Database | |
mssql: | |
image: mcr.microsoft.com/mssql/server:2019-CU15-ubuntu-20.04 | |
restart: always | |
environment: | |
- "ACCEPT_EULA=Y" | |
- "SA_PASSWORD=Ex4mpl3w1thv3ryl0ngp4ssw0rd!" | |
ports: | |
- "1433:1433" | |
volumes: | |
- mssql_data:/var/opt/mssql | |
# MongoDB Database | |
mongo: | |
image: mongo:4.4 | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: example | |
ports: | |
- "27017:27017" | |
volumes: | |
- mongo_data:/data/db | |
mongo-express: | |
image: mongo-express:latest | |
restart: always | |
environment: | |
ME_CONFIG_OPTIONS_EDITORTHEME: ambiance | |
ME_CONFIG_MONGODB_SERVER: mongo | |
ME_CONFIG_BASICAUTH_USERNAME: root | |
ME_CONFIG_BASICAUTH_PASSWORD: example | |
ports: | |
- "8899:8081" | |
depends_on: | |
- mongo | |
# Neo4J | |
neo4j: | |
image: neo4j:4.4.4 | |
restart: always | |
environment: | |
NEO4J_USER: neo4j | |
NEO4J_PASSWORD: example | |
NEO4J_HOST: localhost | |
NEO4J_PORT: 7687 | |
NEO4J_AUTH: neo4j/example | |
NEO4J_ACCEPT_LICENSE_AGREEMENT: "yes" | |
ports: | |
- "7474:7474" | |
- "7687:7687" | |
volumes: | |
- neo4j_data:/data | |
# Redis | |
redis: | |
image: redis:6-alpine | |
restart: always | |
ports: | |
- "6379:6379" | |
volumes: | |
- redis_data:/data | |
# Socat | |
socat: | |
image: alpine/socat:latest | |
restart: always | |
ports: | |
- "2375:2375" | |
command: tcp-listen:2375,fork,reuseaddr unix-connect:/var/run/docker.sock | |
volumes: | |
- "/var/run/docker.sock:/var/run/docker.sock" | |
volumes: | |
neo4j_data: | |
mongo_data: | |
mssql_data: | |
mysql_data: | |
redis_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker-compose.yml
file on your OSdocker-compose up -d