-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
65 lines (60 loc) · 1.22 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
version: "3.8"
services:
tms-database:
container_name: tms-database
image: postgres:${TMS_DB_VERSION}
restart: always
environment:
- POSTGRES_DB=${TMS_DB_NAME}
- POSTGRES_USER=${TMS_DB_USER}
- POSTGRES_PASSWORD=${TMS_DB_PASSWORD}
- PGPORT=${TMS_DB_PORT}
- PGTZ=${TMS_TZ}
expose:
- ${TMS_DB_PORT}
ports:
- ${TMS_DB_PORT}:${TMS_DB_PORT}
volumes:
- tms-volume
networks:
- tms-network
tms-backend:
container_name: tms-backend
build: .
restart: always
env_file:
- .env
environment:
- TZ=${TMS_TZ}
expose:
- ${TMS_BE_PORT}
ports:
- ${TMS_BE_PORT}:${TMS_BE_PORT}
depends_on:
- tms-database
networks:
- tms-network
tms-mail-service:
container_name: tms-mail-service
build:
context: ../mail-service/.
dockerfile: ../mail-service/Dockerfile
restart: always
env_file:
- .env
environment:
- TZ=${TMS_TZ}
expose:
- ${TMS_MS_PORT}
ports:
- ${TMS_MS_PORT}:${TMS_MS_PORT}
networks:
- tms-network
volumes:
tms-volume:
name: tms-volume
driver: local
networks:
tms-network:
name: tms-network
driver: bridge