-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
48 lines (44 loc) · 1.04 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: '2'
services:
nginx-api:
image: yantisj/apisrv-nginx
restart: always
command: /bin/sh -c "nginx -g 'daemon off;'"
build:
context: ./nginx/
dockerfile: Dockerfile.api
expose:
- "9080"
- "9000"
ports:
- ${APISRV_docker_api_port}:9000
volumes:
- ${APISRV_docker_logdir}apisrv/:/var/log/nginx
depends_on:
- apisrv
apisrv:
image: yantisj/apisrv
env_file: ${APISRV_docker_env}
build:
context: .
dockerfile: Dockerfile
expose:
- "9001"
command: su -c '/usr/local/bin/uwsgi --ini /opt/apisrv/extra/wsgi-api.ini' apisrv
volumes:
- ${APISRV_docker_libdir}:/opt/apisrv/lib
- ${APISRV_docker_logdir}:/var/log/apisrv
depends_on:
- redis
cmd:
image: yantisj/apisrv
env_file: ${APISRV_docker_env}
volumes:
- ${APISRV_docker_libdir}:/opt/apisrv/lib
- ${APISRV_docker_logdir}:/var/log/apisrv
depends_on:
- redis
redis:
image: redis:3.2.6-alpine
environment:
- REDIS_PASS=**None**