-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
62 lines (59 loc) · 1.62 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
56
57
58
59
60
61
62
services:
database:
image: jobesta-db
container_name: jobesta-db
ports:
- 5432:5432
build:
context: ./db
dockerfile: ./Dockerfile
env_file: ./server/.env.example
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
volumes:
- jobesta-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "jobesta-user", "-d", "jobesta"]
interval: 10s
retries: 5
start_period: 30s
timeout: 5s
server:
image: jobesta-api
container_name: jobesta-api
ports:
- 3000:3000
build:
context: ./server
dockerfile: ./Dockerfile
env_file: ./server/.env.example
depends_on:
database:
condition: service_healthy
volumes:
- uploads:/usr/src/app/uploads
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000"]
interval: 10s
retries: 5
start_period: 30s
timeout: 5s
frontend:
image: jobesta-frontend
container_name: jobesta-frontend
ports:
- 8080:80
build:
context: ./client
dockerfile: ./Dockerfile
env_file: ./client/.env.example
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 10s
retries: 5
start_period: 30s
timeout: 5s
volumes:
jobesta-data:
name: "jobesta-data"
uploads: