-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (42 loc) · 921 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
version: '3.8'
services:
angular-frontend:
image: angular-frontend
env_file: ./.env
build:
context: ./
dockerfile: ./Dockerfile.client
args:
DB_URI: '${NG_APP_DATABASE_URI}'
depends_on:
- nestjs-backend
ports:
- '${DOCKER_CLIENT_PORT:-8080}:${NGINX_PORT:-80}'
networks:
- todo-app
restart: unless-stopped
nestjs-backend:
image: nestjs-backend
env_file: ./.env
build:
context: ./
dockerfile: ./Dockerfile.server
depends_on:
- postgres-db
ports:
- '${DOCKER_SERVER_PORT:-8081}:${SERVER_PORT:-5000}'
networks:
- todo-app
restart: unless-stopped
postgres-db:
image: postgres:15
ports:
- '${DOCKER_POSTGRES_PORT:-35000}:${POSTGRES_PORT:-5432}'
env_file:
- ./.env
networks:
- todo-app
restart: unless-stopped
networks:
todo-app:
driver: bridge