diff --git a/devenv/ci.yaml b/devenv/ci.yaml index 887daa4..dd55ffd 100644 --- a/devenv/ci.yaml +++ b/devenv/ci.yaml @@ -20,15 +20,15 @@ services: mysql: container_name: devenv_mysql_pedrojs - image: mysql:8.0.26 + image: mysql:8.0.30 command: --default-authentication-plugin=mysql_native_password restart: 'no' environment: MYSQL_ROOT_PASSWORD: example volumes: - - /tmp/dev/pedrojs/mysql_data:/var/lib/mysql - - ./database/mysql/schema.sql:/docker-entrypoint-initdb.d/1_schema.sql - - ./database/mysql/table.sql:/docker-entrypoint-initdb.d/2_table.sql + - ../.data/mysql_data:/var/lib/mysql + - ./init/mysql/schema.sql:/docker-entrypoint-initdb.d/1_schema.sql + - ./init/mysql/table.sql:/docker-entrypoint-initdb.d/2_table.sql ports: - "3306:3306" networks: @@ -36,26 +36,43 @@ services: postgres: container_name: devenv_postgres_pedrojs - image: postgres:13.4 + image: postgres:13.8 restart: 'no' environment: POSTGRES_PASSWORD: example volumes: - - /tmp/dev/pedrojs/postgres_data:/var/lib/postgresql/data - - ./database/postgres/database.sql:/docker-entrypoint-initdb.d/1_database.sql - - ./database/postgres/table.sql:/docker-entrypoint-initdb.d/2_table.sql + - ../.data/postgres_data:/var/lib/postgresql/data + - ./init/postgres/database.sql:/docker-entrypoint-initdb.d/1_database.sql + - ./init/postgres/table.sql:/docker-entrypoint-initdb.d/2_table.sql ports: - "5432:5432" networks: - devenv-network-pedrojs + mongo: + container_name: devenv_mongodb_pedrojs + image: mongo:5.0.14 + command: --auth + restart: 'no' + environment: + MONGO_INITDB_ROOT_USERNAME: root + MONGO_INITDB_ROOT_PASSWORD: example + MONGO_INITDB_DATABASE: test + volumes: + - ../.data/mongodb_data:/data/db + - ./init/mongodb/user.js:/docker-entrypoint-initdb.d/1_user.js + ports: + - "27017:27017" + networks: + - devenv-network-pedrojs + minio1: container_name: devenv_minio_1_pedrojs image: minio/minio:latest restart: 'no' volumes: - - /tmp/dev/pedrojs/minio/data1-1:/data1 - - /tmp/dev/pedrojs/minio/data1-2:/data2 + - ../.data/minio/data1-1:/data1 + - ../.data/minio/data1-2:/data2 ports: - "9000:9000" - "9001:9001" @@ -76,8 +93,8 @@ services: image: minio/minio:latest restart: 'no' volumes: - - /tmp/dev/pedrojs/minio/data2-1:/data1 - - /tmp/dev/pedrojs/minio/data2-2:/data2 + - ../.data/minio/data2-1:/data1 + - ../.data/minio/data2-2:/data2 ports: - "9002:9002" environment: @@ -97,8 +114,8 @@ services: image: minio/minio:latest restart: 'no' volumes: - - /tmp/dev/pedrojs/minio/data3-1:/data1 - - /tmp/dev/pedrojs/minio/data3-2:/data2 + - ../.data/minio/data3-1:/data1 + - ../.data/minio/data3-2:/data2 ports: - "9003:9003" environment: @@ -118,8 +135,8 @@ services: image: minio/minio:latest restart: 'no' volumes: - - /tmp/dev/pedrojs/minio/data4-1:/data1 - - /tmp/dev/pedrojs/minio/data4-2:/data2 + - ../.data/minio/data4-1:/data1 + - ../.data/minio/data4-2:/data2 ports: - "9004:9004" environment: @@ -143,7 +160,7 @@ services: # FOR TEST ONLY DGRAPH_ALPHA_SECURITY: 'whitelist=0.0.0.0/0' volumes: - - /tmp/dev/pedrojs/dgraph/zero:/dgraph + - ../.data/dgraph/zero:/dgraph ports: - "5080:5080" - "6080:6080" @@ -159,7 +176,7 @@ services: # FOR TEST ONLY DGRAPH_ALPHA_SECURITY: 'whitelist=0.0.0.0/0' volumes: - - /tmp/dev/pedrojs/dgraph/alpha1:/dgraph + - ../.data/dgraph/alpha1:/dgraph ports: - "8080:8080" - "9080:9080" @@ -177,7 +194,7 @@ services: # FOR TEST ONLY DGRAPH_ALPHA_SECURITY: 'whitelist=0.0.0.0/0' volumes: - - /tmp/dev/pedrojs/dgraph/alpha2:/dgraph + - ../.data/dgraph/alpha2:/dgraph ports: - "8082:8080" - "9082:9080" @@ -196,7 +213,7 @@ services: # FOR TEST ONLY DGRAPH_ALPHA_SECURITY: 'whitelist=0.0.0.0/0' volumes: - - /tmp/dev/pedrojs/dgraph/alpha3:/dgraph + - ../.data/dgraph/alpha3:/dgraph ports: - "8083:8080" - "9083:9080" @@ -240,8 +257,8 @@ services: image: ipfs/go-ipfs:latest restart: 'no' volumes: - - /tmp/dev/pedrojs/go-ipfs/export:/export - - /tmp/dev/pedrojs/go-ipfs/data:/data/ipfs + - ../.data/go-ipfs/export:/export + - ../.data/go-ipfs/data:/data/ipfs ports: - "4001:4001" - "4001:4001/udp"