-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
58 lines (58 loc) · 1.19 KB
/
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
services:
mq:
image: rabbitmq:3.13
container_name: mq
ports:
- "5672:5672"
- "15672:15672"
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
restart: always
db:
image: postgres:latest
ports:
- "5432:5432"
volumes:
- ./init-scripts:/docker-entrypoint-initdb.d
- pgdata:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
restart: always
fitlog_api_gateway:
container_name: fitlog_api_gateway
build:
context: ./api-gateway
ports:
- "8080:8080"
env_file:
- ./api-gateway/.env
depends_on:
- db
- mq
restart: always
fitlog_core_service:
container_name: fitlog_core_service
build:
context: ./backend
ports:
- "8082:8082"
env_file:
- ./backend/.env
depends_on:
- db
- mq
restart: always
fitlog_auth_service:
container_name: fitlog_auth_service
build:
context: ./auth-service
ports:
- "8081:8081"
env_file: ./auth-service/.env
depends_on:
- db
- mq
restart: always
volumes:
pgdata: