-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (40 loc) · 843 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (40 loc) · 843 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
42
43
44
version: '3'
services:
postgres:
image: postgres:13
restart: always
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: clients
ports:
- "5432:5432"
volumes:
- postgres-data:/var/lib/postgresql/data
- ./scripts/create-clients-db.sql:/docker-entrypoint-initdb.d/init.sql
nodejs-server:
build:
context: .
dockerfile: Dockerfile
restart: always
environment:
PGHOST: postgres
PGUSER: postgres
PGDATABASE: clients
PGPASSWORD: postgres
PGPORT: 5432
ports:
- "3000:3000"
depends_on:
- postgres
reactjs-app:
build:
context: ./docs/
dockerfile: Dockerfile
restart: always
ports:
- "3001:80"
depends_on:
- nodejs-server
volumes:
postgres-data: