-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
114 lines (103 loc) · 3.01 KB
/
docker-compose.yml
File metadata and controls
114 lines (103 loc) · 3.01 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
services:
nginx-gateway:
image: nginx:alpine
container_name: nginx-gateway
volumes:
- ./nginx-gateway/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx-gateway/conf.d:/etc/nginx/conf.d:ro
ports:
- "8080:8080"
depends_on:
- auth-service
- venue-service
- communication-service
venue-service:
image: venue-service:latest
container_name: venue-service-dev
build:
context: .
dockerfile: venue-service/Dockerfile.dev
volumes:
- ./venue-service:/app/venue-service
- ./common:/app/common
environment:
- SERVER_PORT=:8081
- ENVIRONMENT=dev
# JWT configs
- JWT_SECRET=iReallylikevanillaicecream123456789
# PostgreSQL configuration
- POSTGRES_DSN=postgres://root:toor@venue-service-postgres:5432/venue_service_db?sslmode=disable
- POSTGRES_MAX_OPEN_CONNS=25
- POSTGRES_MAX_IDLE_CONNS=25
- POSTGRES_MAX_IDLE_TIME=15m
ports:
- "8081:8081"
depends_on:
- venue-service-postgres
auth-service:
image: auth-service:latest
container_name: auth-service-dev
build:
context: .
dockerfile: auth-service/Dockerfile.dev
volumes:
- ./auth-service:/app/auth-service
- ./common:/app/common
environment:
- SERVER_PORT=:8082
- ENVIRONMENT=dev
# PostgreSQL configuration
- POSTGRES_DSN=postgres://root:toor@auth-service-postgres:5432/auth_service_db?sslmode=disable
- POSTGRES_MAX_OPEN_CONNS=25
- POSTGRES_MAX_IDLE_CONNS=25
- POSTGRES_MAX_IDLE_TIME=15m
# Services configuration
- BASE_URL=http://localhost:8082
- FRONTEND_ADMIN_URL=http://localhost:3000
- COMMUNICATION_SERVICE_URL=http://communication-service-dev:8083
# JWT configs
- JWT_SECRET=iReallylikevanillaicecream123456789
- JWT_EXPIRATION_TIME=3m
- JWT_REFRESH_EXPIRATION_TIME=168h
ports:
- "8082:8082"
depends_on:
- auth-service-postgres
communication-service:
image: communication-service:latest
container_name: communication-service-dev
build:
context: .
dockerfile: communication-service/Dockerfile.dev
volumes:
- ./communication-service:/app/communication-service
- ./common:/app/common
env_file:
- ./communication-service/.env
ports:
- "8083:8083"
auth-service-postgres:
image: postgres:latest
container_name: auth-service-postgres
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=toor
- POSTGRES_DB=auth_service_db
ports:
- "5433:5432"
volumes:
- auth_service_postgres_data:/var/lib/postgresql/data
venue-service-postgres:
image: postgres:latest
container_name: venue-service-postgres
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=toor
- POSTGRES_DB=venue_service_db
ports:
- "5432:5432"
volumes:
- venue_service_postgres_data:/var/lib/postgresql/data
volumes:
auth_service_postgres_data:
venue_service_postgres_data: