forked from AndreiUkladchikov/YandexPracticumTeam
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-auth.yml
More file actions
57 lines (53 loc) · 1.29 KB
/
docker-compose-auth.yml
File metadata and controls
57 lines (53 loc) · 1.29 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
version: '3.8'
services:
auth_nginx:
image: nginx:1.23
env_file:
- "./flask_app/.env"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./configs/auth_service:/etc/nginx/conf.d:ro
depends_on:
- auth_redis
- auth_service
logging:
driver: gelf
options:
gelf-address: 'udp://${LOGSTASH_PUBLIC_HOST}:${LOGSTASH_PUBLIC_PORT}'
tag: auth-nginx
ports:
- '${AUTH_NGINX_PUBLIC_PORT}:${AUTH_NGINX_PORT}'
auth_redis:
image: redis:7.0.5
container_name: auth_redis
env_file:
- "./flask_app/.env"
ports:
- '${REDIS_PORT}:${REDIS_PORT}'
auth_service:
build: ./flask_app
container_name: auth_server
command: gunicorn --bind '${AUTH_SERVER_HOST}:${AUTH_SERVER_PORT}' wsgi_app:app
env_file:
- "./flask_app/.env"
expose:
- '${AUTH_SERVER_PORT}'
jaeger:
image: jaegertracing/all-in-one
container_name: jaeger_auth
ports:
- '5775:5775/udp'
- '6831:6831/udp'
- '6832:6832/udp'
- '5778:5778'
- '16686:16686'
- '14268:14268'
- '9411:9411'
restart: unless-stopped
auth_db:
image: postgres:14
container_name: auth_database
env_file:
- "./flask_app/.env"
ports:
- '${DB_PORT}:${DB_PORT}'