You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tianze/tz/docker-compose.yml

97 lines
2.6 KiB
YAML

3 years ago
version: "3.0"
services:
tianze-upload:
build:
context: ./upload/upload-service
args:
JAVA_OPTS: '-Xmn256M -Xmx1024M'
RUN_ARGS: '--spring.profiles.active=pro --spring.cloud.nacos.server-addr=172.19.255.105:8848'
image: alient/tianze:upload
container_name: upload
restart: always
volumes:
- /tmp/logs/upload:/root/tianze/logs/upload
- /root/tianze/www/pic/:/users/root/www/pic/
networks:
- tianze
ports:
- "50015:50015"
tianze-user:
build:
context: ./user/user-service
args:
JAVA_OPTS: '-Xmn256M -Xmx1024M'
RUN_ARGS: '--spring.profiles.active=pro --spring.cloud.nacos.server-addr=172.19.255.105:8848'
image: alient/tianze:user
container_name: user
restart: always
volumes:
- /tmp/logs/user:/root/tianze/logs/user
3 years ago
- /root/tianze/:/root/tianze/
3 years ago
networks:
- tianze
ports:
- "50011:50011"
tianze-system:
build:
context: ./system/system-service
args:
JAVA_OPTS: '-Xmn256M -Xmx1024M'
RUN_ARGS: '--spring.profiles.active=pro --spring.cloud.nacos.server-addr=172.19.255.105:8848'
image: alient/tianze:system
container_name: system
restart: always
volumes:
- /tmp/logs/system:/root/tianze/logs/system
networks:
- tianze
ports:
- "50014:50014"
tianze-gateway:
build:
context: ./gateway
args:
JAVA_OPTS: '-Xmn256M -Xmx1024M'
RUN_ARGS: '--spring.profiles.active=pro --spring.cloud.nacos.server-addr=172.19.255.105:8848'
image: alient/tianze:gateway
container_name: gateway
restart: always
volumes:
- /tmp/logs/gateway:/root/tianze/logs/gateway
networks:
- tianze
ports:
- "50010:50010"
tianze-exam:
build:
context: ./exam/exam-service
args:
JAVA_OPTS: '-Xmn256M -Xmx1024M'
RUN_ARGS: '--spring.profiles.active=pro --spring.cloud.nacos.server-addr=172.19.255.105:8848'
image: alient/tianze:exam
container_name: exam
restart: always
volumes:
- /tmp/logs/exam:/root/tianze/logs/exam
networks:
- tianze
ports:
- "50013:50013"
tianze-competition:
build:
context: ./competition/competition-service
args:
JAVA_OPTS: '-Xmn256M -Xmx1024M'
RUN_ARGS: '--spring.profiles.active=pro --spring.cloud.nacos.server-addr=172.19.255.105:8848'
image: alient/tianze:competition
container_name: competition
restart: always
volumes:
- /tmp/logs/competition:/root/tianze/logs/competition
networks:
- tianze
ports:
- "50012:50012"
networks:
tianze:
driver: bridge