This commit is contained in:
2022-07-06 10:07:32 +08:00
committed by jhx
parent 54e265dd61
commit 987c04596c
2 changed files with 8 additions and 23 deletions
+3 -13
View File
@@ -1,10 +1,9 @@
version: '3'
services:
machine_server:
server:
build:
context: ./
args:
- CONTAINER_PORT=${CONTAINER_PORT}
- CONTAINER_APP_DIR=${CONTAINER_APP_DIR}
- INSTALL_COMPOSER=${INSTALL_COMPOSER}
- COMPOSER_INSTALLER=${COMPOSER_INSTALLER}
@@ -14,7 +13,6 @@ services:
- CHANGE_AlPINE_SOURCE=${CHANGE_AlPINE_SOURCE}
ports:
- "${HOST_PORT_1}:${CONTAINER_PORT_1}"
- "${HOST_PORT_2}:${CONTAINER_PORT_2}"
volumes:
- ${HOST_APP_DIR}:${CONTAINER_APP_DIR}
- ./id_rsa:/root/.ssh/id_rsa:ro
@@ -24,12 +22,10 @@ services:
tty: true
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- machine_network
#restart: always
#entrypoint: [ "php", "/usr/src/myapp/main.php", "start" ]
machine_redis_server:
redis_server:
build:
context: ./redis
args:
@@ -43,10 +39,4 @@ services:
restart: always
entrypoint: [ "redis-server", "/etc/redis.conf" ]
environment:
TZ: "$TZ"
networks:
- machine_network
networks:
machine_network:
TZ: "$TZ"