97 lines
2.7 KiB
YAML
97 lines
2.7 KiB
YAML
version: "3.0"
|
|
services:
|
|
tianze-upload:
|
|
build:
|
|
context: ./upload/upload-service
|
|
args:
|
|
JAVA_OPTS: '-Xmn256M -Xmx1024M'
|
|
RUN_ARGS: '--spring.profiles.active=sale --spring.cloud.nacos.server-addr=172.19.255.105:8848'
|
|
image: alient/tianze:upload-sale
|
|
container_name: upload-sale
|
|
restart: always
|
|
volumes:
|
|
- /tmp/logs/upload:/root/tianze/logs/upload
|
|
- /root/tianze/www/pic/:/users/root/www/pic/
|
|
networks:
|
|
- tianze
|
|
ports:
|
|
- "60015:60015"
|
|
tianze-user:
|
|
build:
|
|
context: ./user/user-service
|
|
args:
|
|
JAVA_OPTS: '-Xmn256M -Xmx1024M'
|
|
RUN_ARGS: '--spring.profiles.active=sale --spring.cloud.nacos.server-addr=172.19.255.105:8848'
|
|
image: alient/tianze:user-sale
|
|
container_name: user-sale
|
|
restart: always
|
|
volumes:
|
|
- /tmp/logs/user:/root/tianze/logs/user
|
|
- /root/tianze/:/root/tianze/
|
|
networks:
|
|
- tianze
|
|
ports:
|
|
- "60011:60011"
|
|
tianze-system:
|
|
build:
|
|
context: ./system/system-service
|
|
args:
|
|
JAVA_OPTS: '-Xmn256M -Xmx1024M'
|
|
RUN_ARGS: '--spring.profiles.active=sale --spring.cloud.nacos.server-addr=172.19.255.105:8848'
|
|
image: alient/tianze:system-sale
|
|
container_name: system-sale
|
|
restart: always
|
|
volumes:
|
|
- /tmp/logs/system:/root/tianze/logs/system
|
|
networks:
|
|
- tianze
|
|
ports:
|
|
- "60014:60014"
|
|
tianze-gateway:
|
|
build:
|
|
context: ./gateway
|
|
args:
|
|
JAVA_OPTS: '-Xmn256M -Xmx1024M'
|
|
RUN_ARGS: '--spring.profiles.active=sale --spring.cloud.nacos.server-addr=172.19.255.105:8848'
|
|
image: alient/tianze:gateway-sale
|
|
container_name: gateway-sale
|
|
restart: always
|
|
volumes:
|
|
- /tmp/logs/gateway:/root/tianze/logs/gateway
|
|
networks:
|
|
- tianze
|
|
ports:
|
|
- "60010:60010"
|
|
tianze-exam:
|
|
build:
|
|
context: ./exam/exam-service
|
|
args:
|
|
JAVA_OPTS: '-Xmn256M -Xmx1024M'
|
|
RUN_ARGS: '--spring.profiles.active=sale --spring.cloud.nacos.server-addr=172.19.255.105:8848'
|
|
image: alient/tianze:exam-sale
|
|
container_name: exam-sale
|
|
restart: always
|
|
volumes:
|
|
- /tmp/logs/exam:/root/tianze/logs/exam
|
|
networks:
|
|
- tianze
|
|
ports:
|
|
- "60013:60013"
|
|
tianze-competition:
|
|
build:
|
|
context: ./competition/competition-service
|
|
args:
|
|
JAVA_OPTS: '-Xmn256M -Xmx2048M'
|
|
RUN_ARGS: '--spring.profiles.active=sale --spring.cloud.nacos.server-addr=172.19.255.105:8848'
|
|
image: alient/tianze:competition-sale
|
|
container_name: competition-sale
|
|
restart: always
|
|
volumes:
|
|
- /tmp/logs/competition:/root/tianze/logs/competition
|
|
networks:
|
|
- tianze
|
|
ports:
|
|
- "60012:60012"
|
|
networks:
|
|
tianze:
|
|
driver: bridge |