Sign inSign up

timzhao/wandou

By timzhao

Updated almost 5 years ago

Image
0

561

timzhao/wandou repository overview

Dockerfile

FROM init

WORKDIR /root

ENTRYPOINT ["/root/tars_start.sh"]

docker-compose.yml

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

start.sh

#!/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

Tag summary

Content type

Image

Digest

Size

213.8 MB

Last updated

almost 5 years ago

docker pull timzhao/wandou