28 lines
548 B
YAML
28 lines
548 B
YAML
version: '3'
|
|
services:
|
|
node:
|
|
image: node:9.2.0-alpine
|
|
user: node
|
|
working_dir: /home/node/app
|
|
volumes:
|
|
- ./node/:/home/node/app
|
|
command: /bin/sh -c "npm i && node ."
|
|
depends_on:
|
|
- redis
|
|
redis:
|
|
image: redis:3.2.11-alpine
|
|
restart: always
|
|
ports:
|
|
- 6379:6379
|
|
nginx:
|
|
image: registry.lumen.sh/lumen/docker-alpine-nginx-lua:1.13.7
|
|
volumes:
|
|
- ./nginx/conf/:/etc/nginx
|
|
- ./nginx/lua/:/etc/nginx/lua
|
|
restart: always
|
|
depends_on:
|
|
- redis
|
|
ports:
|
|
- 80:80
|
|
|