-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.09 KB
/
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
services:
frontend:
container_name: beow_frontend
restart: always
build:
context: ./client
dockerfile: Dockerfile
ports:
- "1207:1207"
volumes:
- ./client:/client # bind mount
- node_modules:/client/node_modules # docker-managed volume
database:
container_name: beow_db
image: postgres:17
ports:
- 5432:5432
env_file:
- .env
environment:
- POSTGRES_DB=beow_db
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=password
- PGUSER=postgres
volumes:
- ./db/db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U admin -d beow_db'"]
interval: 1s
timeout: 3s
retries: 5
backend:
container_name: beow_backend
build:
context: ./server
dockerfile: Dockerfile
ports:
- "2809:2809"
volumes:
- ./server:/server # bind mount
- ~/.aws/:/root/.aws:ro # make AWS configuration available through a temporary read-only volume
depends_on:
database:
condition: service_healthy
volumes:
node_modules: