nightingale1/docker-compose.yml

71 lines
1.2 KiB
YAML
Raw Normal View History

2020-03-23 00:05:53 +08:00
version: "3"
volumes:
mysql-data:
2020-03-23 00:42:22 +08:00
services:
nginx:
image: nginx:stable-alpine
ports:
- 80:80
volumes:
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/conf.d:/etc/nginx/conf.d
- ./pub:/home/n9e/pub
2020-03-23 00:05:53 +08:00
api:
build: .
image: api
monapi:
image: api
restart: always
command: monapi
2020-03-23 00:42:22 +08:00
volumes:
- ./docker/etc:/app/etc
2020-03-23 00:05:53 +08:00
ports:
2020-03-23 00:42:22 +08:00
- 5800:5800
2020-03-23 01:05:17 +08:00
index:
image: api
restart: always
command: index
volumes:
- ./docker/etc:/app/etc
ports:
- 5830:5830
- 5831:5831
transfer:
image: api
restart: always
command: transfer
volumes:
- ./docker/etc:/app/etc
ports:
- 5810:5810
- 5811:5811
2020-03-23 00:42:22 +08:00
# web:
# build:
# context: web
# restart: always
# command: npm run dev
# ports:
# - 8010:8010
2020-03-23 00:05:53 +08:00
redis:
image: redis
restart: always
ports:
- 6379:6379
mysql:
image: mysql:5.7
restart: always
environment:
- MYSQL_ROOT_PASSWORD=1234
ports:
- 3306:3306
volumes:
- ./sql:/docker-entrypoint-initdb.d
- mysql-data:/var/lib/mysql