FROM init
WORKDIR /root
ENTRYPOINT ["/root/tars_start.sh"]
version: "2"
services:
php:
image: timzhao/wandou:tars
volumes:
- /Users/tim/codes/wandou:/root
- ./start.sh:/root/tars_start.sh
ports:
- "50000:50000"
- "21001:21001"
- "50002:50002"
networks:
- code-network
links:
- "redis:redis"
redis:
image: redis:4-alpine
ports:
- "16379:6379"
networks:
- code-network
networks:
code-network:
driver: bridge
#!/bin/sh
cd /root/lc_core/src
php ./index.php --config=../test.conf restart &>../log/restart.log
cd /root/lc_api/src
php ./index.php --config=../test.conf restart &>../log/restart.log
cd /root/lc_openapi/src
php ./index.php --config=../test.conf restart &>../log/restart.log
tail -f /etc/hosts
Content type
Image
Digest
Size
213.8 MB
Last updated
almost 5 years ago
docker pull timzhao/wandou