-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (37 loc) · 875 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (37 loc) · 875 Bytes
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
version: "3"
services:
postgres:
image: postgres:latest
environment:
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USERNAME}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
ports:
- "${DATABASE_PORT}:5432"
volumes:
- ngx_todo:/var/lib/postgresql/data
api:
build:
context: ./server
dockerfile: Dockerfile
environment:
- PORT=3000
- DATABASE_PORT=${DATABASE_PORT}
- DATABASE_HOST=postgres
- DATABASE_NAME=${DATABASE_NAME}
- DATABASE_USERNAME=${DATABASE_USERNAME}
- DATABASE_PASSWORD=${DATABASE_PASSWORD}
ports:
- "3000:3000"
depends_on:
- postgres
frontend:
build:
context: ./client
dockerfile: Dockerfile
ports:
- "4200:4200"
depends_on:
- api
volumes:
ngx_todo: