-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (53 loc) · 1.02 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
49
50
51
52
53
54
55
56
57
58
version: ‘3’
x-my_flask_webpage: &my_flask_webpage
image: my_flask_webpage:latest
tmpfs:
- /tmp
#links:
# - mail
# - redis
# - postgres
networks:
- back
read_only: true
services:
app:
<<: *my_flask_webpage
command: uwsgi --ini uwsgi.ini
#--workers 8 --threads 4
environment:
VIRTUAL_PROTO: uwsgi
VIRTUAL_PORT: 3031
# Why is needed cfg-File?
# SPZ_CFG_FILE: production.cfg
#volumes:
# at the moment irrelevent
networks:
- front
- back
nginx:
image: jwilder/nginx-proxy:0.9
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
- data_static:/static:ro
- cache_nginx:/var/cache/nginx
- state_nginx:/etc/nginx
tmpfs:
- /run
- /tmp
networks:
- front
links:
- app
read_only: true
depends_on:
- app
ports:
- "443:443"
volumes:
cache_nginx: {}
data_static: {}
state_nginx: {}
networks:
front: {}
back: {}