-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
docker-compose.yml
44 lines (38 loc) · 894 Bytes
/
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
version: "3"
services:
trash-email-service:
build: ./TrashEmailService
networks:
- trash-email-network
ports:
- "9090:9090"
volumes:
- "./DB:/opt/TrashEmailService/DB:rw"
restart: on-failure
environment:
- SPRING_PROFILES_ACTIVE
depends_on:
- mysql
emails-to-telegram-service:
build: ./EmailsToTelegramService
networks:
- trash-email-network
restart: on-failure
depends_on:
- trash-email-service
volumes:
- "/tmp:/opt/EmailsToTelegramService/mails/:rw"
environment:
- SPRING_PROFILES_ACTIVE
mysql:
image: mysql:latest
restart: always
environment:
MYSQL_DATABASE: 'trashemail'
MYSQL_ROOT_PASSWORD: changeme
volumes:
- "../trashemail-mysql-data-dir:/var/lib/mysql:rw"
networks:
- trash-email-network
networks:
trash-email-network: