-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
49 lines (44 loc) · 969 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
44
45
46
47
48
49
version: '3'
services:
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: ./Dockerfile
ports:
- "3000:3000"
broker-service:
container_name: broker-service
build:
context: ./broker-service
dockerfile: ./Dockerfile
ports:
- "8000:8000"
postgres-db:
image: postgres:14.1-alpine
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: users
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
authentication-service:
container_name: authentication-service
build:
context: ./authentication-service
dockerfile: ./Dockerfile
ports:
- "8001:8001"
environment:
DB_HOST: postgres-db
DB_PORT: 5432
DB_USER: postgres
DB_PASSWORD: postgres
DB_NAME: users
depends_on:
- postgres-db
volumes:
postgres-data:
driver: local