-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
107 lines (105 loc) · 2.32 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: "3"
services:
nginx:
container_name: notifications-nginx
image: nginx:latest
restart: on-failure
volumes:
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- static_value:/var/html/static/
- media_value:/var/html/media/
ports:
- '80:80'
networks:
- notifications_networks
admin-panel:
build:
context: .
dockerfile: admin_panel/Dockerfile
restart: always
container_name: notifications-admin-panel
volumes:
- static_value:/code/static_files/
- media_value:/code/media/
env_file:
- ./admin_panel/.env
depends_on:
- db
networks:
- notifications_networks
fastapi:
container_name: notifications-fastapi
build:
context: .
dockerfile: api/Dockerfile
ports:
- '8001:8000'
env_file:
- .env
networks:
- notifications_networks
restart: on-failure
notifications-flask-auth-service:
build:
context: .
dockerfile: auth/Dockerfile
container_name: notifications-flask-auth-service
restart: on-failure
ports:
- '5000:8000'
env_file:
- .env
networks:
- notifications_networks
depends_on:
- db
mongo-fastapi:
image: mongo:4.4.6
container_name: notifications-mongo-fastapi
ports:
- '27017:27017'
restart: always
volumes:
- ./api/mongo:/mongo
networks:
- notifications_networks
redis:
image: redis:7.0-rc3-alpine3.15
container_name: notifications-redis-auth
restart: on-failure
env_file:
- .env
ports:
- '6379:6379'
networks:
- notifications_networks
db:
image: postgres:13.6
ports:
- '5432:5432'
container_name: notifications-postgresql-database
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
env_file:
- .env
networks:
- notifications_networks
rabbitmq:
container_name: notifications-rabbitmq
image: rabbitmq:management-alpine
ports:
- '5672:5672'
- '15672:15672'
networks:
- notifications_networks
volumes:
postgres_data:
static_value:
media_value:
networks:
notifications_networks: