-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
55 lines (52 loc) · 1.12 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
version: "3.5"
networks:
backend:
frontend:
services:
bas24apiauthdb:
container_name: bas24_api_auth_db
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
PGDATA: /data/postgres
volumes:
- bas24apiauthdb:/data/postgres
ports:
- "5435:5432"
networks:
- backend
restart: unless-stopped
bas24apigateway:
build:
context: .
dockerfile: ApiGateWay/Dockerfile
container_name: bas24_api_gateway
restart: unless-stopped
ports:
- "8000:80"
networks:
- backend
- frontend
# environment:
# - ASPNETCORE_ENVIRONMENT=Production
bas24authapi:
depends_on:
- bas24apiauthdb
build:
context: .
dockerfile: AuthApi/Dockerfile
container_name: bas24_auth_api
restart: unless-stopped
ports:
- "8001:80"
networks:
- backend
environment:
- DB_HOST=bas24apiauthdb
- DB_PORT=5432
- DB_USER=postgres
- DB_PASSWORD=postgres
- DB_NAME=BAS24Auth
volumes:
bas24apiauthdb: