forked from codersforcauses/penni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (40 loc) · 935 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
services:
db:
container_name: penni-db
image: postgres
restart: unless-stopped
volumes:
- ${LOCAL_WORKSPACE_FOLDER:-.}/data/db:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 5
env_file: ./server/.env
ports:
- 5432:5432
server:
container_name: penni-server
build:
context: .
dockerfile: ./docker/server/Dockerfile
restart: unless-stopped
env_file: ./server/.env
ports:
- 8000:8000
volumes:
- ${LOCAL_WORKSPACE_FOLDER:-.}/server:/app
client:
container_name: penni-client
build:
context: .
dockerfile: ./docker/client/Dockerfile
restart: unless-stopped
env_file: ./client/.env
ports:
- 3000:3000
volumes:
- ${LOCAL_WORKSPACE_FOLDER:-.}/client:/app
- ignore:/app/node_modules
volumes:
ignore: