-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
42 lines (42 loc) · 1.07 KB
/
docker-compose.yaml
File metadata and controls
42 lines (42 loc) · 1.07 KB
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
services:
nginx-proxy:
image: nginx
ports:
- $OUTPORT:80
volumes:
- type: bind
source: ./nginx
target: /etc/nginx/templates
read_only: true
- type: bind
source: ./web
target: /data/web
read_only: true
depends_on:
- $FLASK_HOSTNAME
environment:
- PROXY_HOSTNAME=localhost
- PROXY_PORT=$OUTPORT
- NGINX_PORT=80
- FLASK_HOSTNAME=$FLASK_HOSTNAME
- FLASK_PORT=6500
backend:
build:
context: .
dockerfile: flask/Dockerfile
volumes:
- wav-files:/src/flask/static
alpine-cron:
build:
context: .
dockerfile: cron/Dockerfile
environment:
- CURL_PORT=6500
- CURL_HOST=$FLASK_HOSTNAME
- WAV_FILE_LOCATION=/src/static
depends_on:
- nginx-proxy
volumes:
- wav-files:/src/static
volumes:
wav-files: