Created
September 19, 2023 16:52
-
-
Save ssv445/17a700e6e6c8427fbccc612cc20685ad to your computer and use it in GitHub Desktop.
.devcontainer/docker-compose-macm1.yml
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' | |
services: | |
app: | |
build: | |
context: . | |
dockerfile: nodejs/Dockerfile | |
args: | |
# Update 'VARIANT' to pick an LTS version of Node.js: 16, 14, 12. | |
# Append -bullseye or -buster to pin to an OS version. | |
# Use -bullseye variants on local arm64/Apple Silicon. | |
VARIANT: 16-bullseye | |
container_name: nodejs_api | |
volumes: | |
- ..:/workspace:delegated | |
- ~/.ssh:/home/node/.ssh:ro | |
- volume_node_modules:/workspace/node_modules | |
- volume_nodejs_api_node_modules:/workspace/nodejs_api/node_modules | |
- volume_nodejs_analytics_node_modules:/workspace/nodejs_analytics/node_modules | |
- volume_release_data:/workspace/release/ | |
- volume_vuejs_web_wonder_node_modules:/workspace/vuejs_web_wonder/node_modules | |
- volume_vuejs_auth_node_modules:/workspace/vuejs_auth/node_modules | |
- volume_vuejs_tenant_maker_node_modules:/workspace/vuejs_tenant_maker/node_modules | |
- volume_vuejs_tenant_node_modules:/workspace/vuejs_tenant/node_modules | |
command: sleep infinity | |
entrypoint: ['tail', '-f', '.devcontainer/docker-compose.yml'] | |
working_dir: /workspace/ | |
ports: | |
- '2122:2122' | |
- '2124:2124' | |
- '8063:8063' | |
- '8065:8065' | |
- '8067:8067' | |
- '8069:8069' | |
# Uncomment the next line to use a non-root user for all processes. | |
# user: node | |
mysql: | |
image: mysql | |
container_name: mysql_db | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: password | |
MYSQL_DATABASE: analytics | |
ports: | |
- '3306:3306' | |
db: | |
image: mongo:5 | |
container_name: mongo_5 | |
restart: unless-stopped | |
volumes: | |
- mongodb-data:/data/db | |
- ./db/mongo-init.js:/docker-entrypoint-initdb.d/mongo-init.js:ro | |
ports: | |
- '27017:27017' | |
# Uncomment to change startup options | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: password | |
MONGO_INITDB_DATABASE: stellar | |
# Run the caddy server | |
caddy: | |
image: arm64v8/caddy | |
container_name: caddy-service | |
restart: unless-stopped | |
ports: | |
- '80:80' | |
volumes: | |
- ./caddy/Caddyfile:/etc/caddy/Caddyfile | |
- ./caddy/site:/srv | |
- caddy_data:/data | |
- caddy_config:/config | |
redis: | |
image: redis:5-alpine | |
container_name: redis | |
restart: unless-stopped | |
volumes: | |
- 'redis_data:/data' | |
expose: | |
- 6379 | |
volumes: | |
redis_data: | |
caddy_data: | |
caddy_config: | |
mongodb-data: | |
vscode-ext: | |
vscode-ext-insider: | |
volume_node_modules: | |
volume_nodejs_api_node_modules: | |
volume_nodejs_analytics_node_modules: | |
volume_vuejs_auth_node_modules: | |
volume_vuejs_tenant_node_modules: | |
volume_vuejs_tenant_maker_node_modules: | |
volume_vuejs_web_wonder_node_modules: | |
volume_release_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment