-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.yml
40 lines (39 loc) · 910 Bytes
/
sample.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
version: '3'
services:
rproxy:
image: nginx:latest
container_name: rproxy
hostname: rproxy
ports:
- 80:80
- 443:443
restart: unless-stopped
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
volumes:
- ./nginx/conf/:/etc/nginx/conf.d/:ro
- ./:/opt/mt_queue_mgr/:ro
networks:
backend:
ipv4_address: 172.20.0.2
mt_queue_mgr:
build:
context: ./
args:
- DIRPATH=$DIRPATH
container_name: mt_queue_mgr
hostname: mt_queue_mgr
restart: unless-stopped
command: sh -c "gunicorn mt_queue_mgr.wsgi:application"
depends_on:
- rproxy
volumes:
- ./:/opt/mt_queue_mgr
networks:
backend:
ipv4_address: 172.20.0.3
networks:
backend:
ipam:
driver: default
config:
- subnet: "172.20.0.0/24"