-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
43 lines (43 loc) · 1.07 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
services:
#If you need replicas of the containers, copy and past. At this moment,
#DockerComposeV2's "replica" does not work as DockerComposeV1's
frontend:
container_name: angularfrontend
build:
context: ./AngularFrontend
dockerfile: ./Dockerfile
nginx:
container_name: middlenginx
image: nginx:stable-alpine
expose:
- "80"
ports:
- "80:80"
volumes:
- ./nginx.middle.conf:/etc/nginx/conf.d/default.conf:rw
depends_on:
- backend
backend:
container_name: nodebackend
build:
context: ./NodeBackend
dockerfile: ./Dockerfile
ports:
- "3000:3000"
depends_on:
- db
db:
container_name: postgres
image: postgres:14
volumes:
- ./db:/docker-entrypoint-initdb.d/
- ./pgdata:/var/lib/postgres/data
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=postgres
- POSTGRES_USER=postgres
- POSTGRES_DB=postgres
- APP_DB_USER=docker
- APP_DB_PASS=docker
- APP_DB_NAME=docker