-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
63 lines (62 loc) · 1.12 KB
/
docker-compose.yaml
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
59
60
61
62
63
version: "2"
networks:
net:
driver: bridge
ipam:
config:
- subnet: 172.16.60.0/24
services:
nginx:
image: nginx
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./nginx/ssl:/etc/nginx/ssl
networks:
- net
redis:
image: redis:7.0.4-alpine
container_name: redis
networks:
- net
ports:
- "127.0.0.1:6379:6379"
postfix:
build:
context: postfix
container_name: postfix
networks:
- net
backend:
container_name: backend
environment:
- FLASK_APP=manage.py
- FLASK_ENV=development
- REDIS_HOST=redis
- MAIL_HOST=postfix
depends_on:
- postfix
- redis
- nginx
build:
context: backend
volumes:
- ./backend:/app
- ./keys:/app/keys
- ./log/backend:/var/log
networks:
- net
frontend:
container_name: frontend
build:
context: frontend
depends_on:
- backend
- nginx
#volumes:
#- ./frontend:/app
networks:
- net