-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (72 loc) · 1.63 KB
/
docker-compose.yml
File metadata and controls
84 lines (72 loc) · 1.63 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
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
#
# Task Planner
# Copyright (C) 2024 Mateusz Kubiak
#
# Licensed under the GNU General Public License v3.
# See LICENSE or visit <https://www.gnu.org/licenses/>.
#
name: taskplanner
volumes:
db:
services:
mysqldb:
image: mysql:5.7
restart: unless-stopped
env_file: ./.env
environment:
- MYSQL_ROOT_PASSWORD=$MYSQLDB_ROOT_PASSWORD
- MYSQL_DATABASE=$MYSQLDB_DATABASE
volumes:
- db:/var/lib/mysql
dbadmin:
image: phpmyadmin:5.2
restart: unless-stopped
env_file: ./.env
environment:
- MYSQL_ROOT_PASSWORD=$MYSQLDB_ROOT_PASSWORD
- PMA_HOST=taskplanner-mysqldb-1
- PMA_PORT=$MYSQLDB_DOCKER_PORT
ports:
- $DBADMIN_EXPOSE_PORT:80
rabbitmq:
image: rabbitmq:4.0-management-alpine
restart: unless-stopped
ports:
- 8082:15672
env_file: ./.env
environment:
- RABBITMQ_DEFAULT_USER=$RABBIT_USER
- RABBITMQ_DEFAULT_PASS=$RABBIT_PASS
gateway:
build: ./gateway
restart: unless-stopped
env_file: ./.env
ports:
- $GATEWAY_EXPOSE_PORT:8080
# services
task-service:
depends_on:
- mysqldb
- rabbitmq
build: ./services/task-service
restart: unless-stopped
env_file: ./.env
auth-service:
depends_on:
- mysqldb
build: ./services/auth-service
restart: unless-stopped
env_file: ./.env
user-service:
depends_on:
- mysqldb
- rabbitmq
build: ./services/user-service
restart: unless-stopped
env_file: ./.env
email-service:
depends_on:
- rabbitmq
build: ./services/email-service
restart: unless-stopped
env_file: ./.env