forked from hasgeek/funnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 873 Bytes
/
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
version: '3'
services:
web:
build: .
image: master-image
ports:
- 3000:3000
depends_on:
- redis
command: sh ./devserver.py
volumes:
#- .:/app
- $HOME/.aws/credentials:/app/.aws/credentials:ro
worker:
image: master-image
depends_on:
- redis
command: sh ./rq.sh
volumes:
- $HOME/.aws/credentials:/app/.aws/credentials:ro
redis:
image: redis
nginx:
build:
context: ./etc/nginx
container_name: nginx
volumes:
- static_data:/vol/static
# - /etc/letsencrypt:/etc/letsencrypt
# - ./etc/letsencrypt/www:/var/www/letsencrypt
ports:
- 80:80
- 443:443
command: '/bin/sh -c ''while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g "daemon off;error_log /dev/stdout info;"'''
depends_on:
- web
volumes:
static_data: