Skip to content

Commit

Permalink
save_last
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhouYixun committed Oct 14, 2021
1 parent 1168b46 commit 1dc9863
Show file tree
Hide file tree
Showing 24 changed files with 232 additions and 202 deletions.
8 changes: 0 additions & 8 deletions config/actuator-dev.yml

This file was deleted.

18 changes: 0 additions & 18 deletions config/feign-dev.yml

This file was deleted.

11 changes: 0 additions & 11 deletions config/jdbc-dev.yml

This file was deleted.

8 changes: 0 additions & 8 deletions config/knife4j-dev.yml

This file was deleted.

7 changes: 0 additions & 7 deletions config/logging-dev.yml

This file was deleted.

7 changes: 0 additions & 7 deletions config/rabbitmq-dev.yml

This file was deleted.

5 changes: 0 additions & 5 deletions config/redis-dev.yml

This file was deleted.

11 changes: 0 additions & 11 deletions config/sonic-server-bus-dev.yml

This file was deleted.

16 changes: 0 additions & 16 deletions config/sonic-server-controller-dev.yml

This file was deleted.

11 changes: 0 additions & 11 deletions config/sonic-server-folder-dev.yml

This file was deleted.

31 changes: 0 additions & 31 deletions config/sonic-server-gateway-dev.yml

This file was deleted.

27 changes: 0 additions & 27 deletions config/sonic-server-task-dev.yml

This file was deleted.

16 changes: 0 additions & 16 deletions config/sonic-server-transport-dev.yml

This file was deleted.

172 changes: 172 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
version: '3'
#you can add this for log debugging for every container.
#volumes:
# - /home/sonic/logs/:/logs/
services:
sonic-server-eureka:
image: "zhouyixun/sonic-server-eureka:v1.0.0"
hostname: sonic-server-eureka
environment:
- EUREKA_HOST=sonic-server-eureka
networks:
- sonic-network
ports:
- "9090:9090"
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 2s
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 6
sonic-server-bus:
image: "zhouyixun/sonic-server-bus:v1.0.0"
environment:
- PROFILE=prod
- CONFIG_TYPE=git
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
networks:
- sonic-network
depends_on:
- sonic-server-eureka
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 2s
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 6
sonic-server-gateway:
image: "zhouyixun/sonic-server-gateway:v1.0.0"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
networks:
- sonic-network
depends_on:
- sonic-server-bus
- sonic-server-eureka
ports:
- "8094:8094"
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 2s
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 6
sonic-server-controller:
image: "zhouyixun/sonic-server-controller:v1.0.0"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
networks:
- sonic-network
depends_on:
- sonic-server-bus
- sonic-server-eureka
- sonic-server-gateway
deploy:
replicas: 2
placement:
constraints:
- node.role == worker
update_config:
parallelism: 1
delay: 2s
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 6
sonic-server-folder:
image: "zhouyixun/sonic-server-folder:v1.0.0"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
networks:
- sonic-network
# volumes:
# - /home/sonic/keepFiles/:/keepFiles/
# - /home/sonic/imageFiles/:/imageFiles/
# - /home/sonic/recordFiles/:/recordFiles/
depends_on:
- sonic-server-bus
- sonic-server-eureka
- sonic-server-gateway
deploy:
replicas: 1
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 2s
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 6
sonic-server-task:
image: "zhouyixun/sonic-server-task:v1.0.0"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
networks:
- sonic-network
depends_on:
- sonic-server-bus
- sonic-server-eureka
- sonic-server-gateway
deploy:
replicas: 1
placement:
constraints:
- node.role == worker
update_config:
parallelism: 1
delay: 2s
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 6
sonic-server-transport:
image: "zhouyixun/sonic-server-transport:v1.0.0"
environment:
- PROFILE=prod
- EUREKA_URL=http://sonic:sonic@sonic-server-eureka:9090/eureka/
networks:
- sonic-network
depends_on:
- sonic-server-bus
- sonic-server-eureka
- sonic-server-gateway
deploy:
replicas: 1
placement:
constraints:
- node.role == worker
update_config:
parallelism: 1
delay: 2s
restart_policy:
condition: on-failure
delay: 20s
max_attempts: 6

networks:
sonic-network:
driver: overlay
Loading

0 comments on commit 1dc9863

Please sign in to comment.