-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 998 Bytes
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 998 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
45
46
47
48
49
50
51
52
53
54
version: '3.8'
services:
database:
container_name: database
hostname: postgres
image: postgres
volumes:
- ./data/database:/var/lib/postgresql/data
ports:
- "5432:5432"
networks:
- postgres
restart: unless-stopped
environment:
POSTGRES_PASSWORD: postgres
api:
build: ./api
container_name: api
ports:
- "4000:4000"
volumes:
- ./api:/app
- /app/node_modules
networks:
- postgres
links:
- database
depends_on:
- database
environment:
DB_HOST: host.docker.internal
DB_USER: postgres
DB_PASS: postgres
DB_PASSWORD: postgres
client:
build: client
command: npm start
restart: always
container_name: client_frontend
ports:
- "3000:3000"
volumes:
- client/src/App
- /app/node_modules
stdin_open: true
environment:
- CHOKIDAR_USEPOLLING=true
tty: true
networks:
postgres:
driver: bridge