-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.dev.yaml
More file actions
45 lines (43 loc) · 921 Bytes
/
compose.dev.yaml
File metadata and controls
45 lines (43 loc) · 921 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
services:
db:
image: postgres:15
restart: unless-stopped
environment:
- POSTGRES_DB=postgres
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- mode: host
target: 5432
published: 5432
todo_list:
build:
context: ./client
dockerfile: Dockerfile
args:
- REACT_APP_API_URL=http://localhost:3010
ports:
- mode: ingress
target: 3000
published: 3000
volumes:
- "./client:/code"
- /code/node_modules
depends_on:
- server
server:
restart: unless-stopped
build:
context: ./server
dockerfile: Dockerfile
ports:
- target: 3010
mode: ingress
published: 3010
environment:
- DATABASE_URL=postgres://postgres:postgres@db:5432/postgres
volumes:
- "./server:/app"
- /app/node_modules
depends_on:
- db