Skip to content

Commit

Permalink
chore: update docker yml for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jan 19, 2022
1 parent 0c2bf19 commit cf442e9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
networks:
- laf_shared_network

system_server:
system-server:
image: node:16-alpine
user: root
working_dir: /app
Expand All @@ -31,14 +31,16 @@ services:
SHARED_NETWORK: laf_shared_network
LOG_LEVEL: debug
ACCOUNT_DEFAULT_APP_QUOTA: 5
SERVICE_DRIVER: docker
APP_SERVICE_IMAGE: lafyun/app-service:latest
APP_SERVICE_DEPLOY_HOST: local-dev.host:8080 # `*.local-dev.host` always resolved to 127.0.0.1, used to local development
APP_SERVICE_DEPLOY_URL_SCHEMA: 'http'
STORAGE_SERVICE_API_ENTRYPOINT: http://storage_service:9010
STORAGE_SERVICE_API_ENTRYPOINT: http://storage-service:9010
STORAGE_SERVICE_SECRET: Rewrite_Your_Own_Secret_Salt_abcdefg1234567
STORAGE_SERVICE_DEPLOY_HOST: fs.local-dev.host:8080 # `*.local-dev.host` always resolved to 127.0.0.1, used to local development
DEBUG_BIND_HOST_APP_PATH: '${PWD}/packages/app-service'
INIT_ROOT_ACCOUNT_PASSWORD: abc123

command: sh /app/start.sh
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
Expand All @@ -58,7 +60,7 @@ services:
image: openresty/openresty:latest
depends_on:
- mongo
- system_server
- system-server
environment:
DEPLOY_DOMAIN: "*.local-dev.host" # `*.local-dev.host` always resolved to 127.0.0.1, used to local development
DEPLOY_FS_DOMAIN: "*.fs.local-dev.host"
Expand All @@ -69,16 +71,16 @@ services:
- ./packages/system-client/dist:/app
- ./packages/app-console/dist:/app-console
- ./docs/.vitepress/dist:/docs
- ./packages/gateway/app.conf:/etc/nginx/templates/app.conf.template
- ./packages/gateway/system.conf:/etc/nginx/templates/system.conf.template
- ./packages/gateway/fs-proxy.conf:/etc/nginx/templates/fs-proxy.conf.template
- ./packages/gateway/conf.docker/app.conf:/etc/nginx/templates/app.conf.template
- ./packages/gateway/conf.docker/system.conf:/etc/nginx/templates/system.conf.template
- ./packages/gateway/conf.docker/fs-proxy.conf:/etc/nginx/templates/fs-proxy.conf.template
command: "sh /scripts/start.sh"
ports:
- 8080:80
networks:
- laf_shared_network

storage_service:
storage-service:
image: node:16-alpine
user: root
working_dir: /app
Expand All @@ -101,9 +103,7 @@ services:

volumes:
db-data: null
grifs-data:

null

networks:
laf_shared_network:
external: true

0 comments on commit cf442e9

Please sign in to comment.