-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
58 lines (58 loc) · 1.48 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
version: "3.6"
services:
# ----------------------------------------------
# БД: Postgres, Redis, миграции
# ----------------------------------------------
postgres:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: kinoskop
ports:
- "5432:5432"
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
migrations:
restart: on-failure
build:
context: .
dockerfile: ./docker/migrations.dockerfile
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
depends_on:
- postgres
# ----------------------------------------------
# Микросервисы: Core, Profanity
# ----------------------------------------------
profanity:
restart: always
build:
context: .
dockerfile: ./docker/profanity.dockerfile
ports:
- "8085:8085"
core:
restart: always
build:
context: .
dockerfile: ./docker/core.dockerfile
volumes:
- ./config.yaml:/app/config.yaml
- ./config_auth.yaml:/app/config_auth.yaml
- ./config_static.yaml:/app/config_static.yaml
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
CONTENT_SECRET_KEY: ${CONTENT_SECRET_KEY}
ports:
- "8080:8080"
depends_on:
- profanity
- postgres
- redis