-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (79 loc) · 1.68 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
version: "3"
volumes:
data:
services:
postgres:
image: postgres:latest
container_name: postgres
user: postgres
environment:
- POSTGRES_PASSWORD=postgrespw
- POSTGRES_USER=postgres
- PGDATA=/var/lib/postgresql/data
ports:
- "5432:5432"
volumes:
- ./services/postgres/create_databases.sql:/docker-entrypoint-initdb.d/create_databases.sql
- data:/var/lib/postgresql
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-d", "db_prod" ]
interval: 30s
timeout: 60s
retries: 5
networks:
- task-tracker-network
rabbitmq:
image: rabbitmq:3-management
container_name: rabbitmq
ports:
- "15672:15672"
- "5672:5672"
networks:
- task-tracker-network
api-gateway:
container_name: api-gateway
build:
context: .
dockerfile: ./services/api_gateway/Dockerfile
ports:
- "8081:8080"
networks:
- task-tracker-network
task-admin:
container_name: task-admin
build:
context: .
dockerfile: services/task_admin/Dockerfile
ports:
- "8000:8000"
networks:
- task-tracker-network
depends_on:
- postgres
- rabbitmq
restart: always
front:
container_name: front
build:
context: .
dockerfile: services/front/Dockerfile
ports:
- "8080:80"
networks:
- task-tracker-network
auth:
container_name: auth
build:
context: .
dockerfile: services/auth/Dockerfile
ports:
- "8001:8001"
depends_on:
- postgres
- rabbitmq
networks:
- task-tracker-network
networks:
task-tracker-network:
driver: bridge
external: true