forked from jenpet/plooral
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1023 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
42
43
version: '3.7'
services:
postgres:
image: postgres:13
environment:
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
restart: on-failure
ui:
image: node:latest
ports:
- "8080:8080"
volumes:
- ./ui:/var/plooral/ui
working_dir: /var/plooral/ui
entrypoint: "/bin/sh -c 'npm i && npm run serve'"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
restart: unless-stopped
api:
image: cosmtrek/air:latest
ports:
- "8079:8079"
environment:
- "POSTGRES_URI=postgres://postgres:postgres@postgres:5432/postgres?sslmode=disable"
working_dir: "/var/plooral/api"
entrypoint: "air -c /var/plooral/api/air.toml"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8079/api/v1/info" ]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
volumes:
- ./api:/var/plooral/api