-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
48 lines (44 loc) · 929 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
46
47
48
version: "3.9"
services:
client:
container_name: ngcash-client
build: ./client
ports:
- "3000:3000"
restart: always
volumes:
- ./client:/client
- client_node_modules:/client/node_modules
env_file:
- ./client/.env
depends_on:
- server
server:
container_name: ngcash-server
build: ./server
ports:
- "3001:3001"
restart: always
volumes:
- ./server:/server
- server_node_modules:/server/node_modules
env_file:
- ./server/.env
depends_on:
- database
database:
container_name: ngcash-database
image: postgres:15-alpine
restart: always
volumes:
- database:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
database:
server_node_modules:
client_node_modules: