-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
55 lines (55 loc) · 1.04 KB
/
docker-compose.yaml
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
55
version: "3.8"
services:
db:
platform: linux/amd64
build:
dockerfile: Dockerfile.postgres
context: "./"
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: cloud
ports:
- "5432:5432"
volumes:
- ./dbdata:/var/lib/postgresql/data
networks:
- postgres
api:
platform: linux/amd64
env_file:
- ./server/.env
build:
dockerfile: Dockerfile.dev
context: "./server"
volumes:
- /app/node_modules
- ./server:/app
environment:
- PGHOST=db
- PGDATABASE=cloud
- PGUSER=postgres
- PGPASSWORD=postgres
- PGPORT=5432
ports:
- "3001:3001"
depends_on:
- db
networks:
- postgres
react:
platform: linux/amd64
build:
dockerfile: Dockerfile.dev
context: "./client"
volumes:
- /app/node_modules
- ./client:/app
ports:
- "3000:3000"
stdin_open: true
tty: true
command: npm run dev
networks:
postgres:
driver: bridge