-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
70 lines (70 loc) · 1.54 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.9"
services:
nginx:
image: ghcr.io/finwave-app/nginx:latest
depends_on:
- frontend
- backend
restart: unless-stopped
ports:
- "80:80"
volumes:
- ./nginx/custom-http.d:/etc/nginx/custom-http.d
- ./nginx/conf.d:/etc/nginx/conf.d
networks:
fwnet:
aliases:
- nginx
frontend:
image: ghcr.io/finwave-app/frontend:latest
environment:
NUXT_PUBLIC_API_URL: ${API_URL}
restart: unless-stopped
ports:
- "3000"
networks:
fwnet:
aliases:
- frontend
backend:
image: ghcr.io/finwave-app/backend:latest
depends_on:
- postgres
environment:
DATABASE_PASSWORD: ${POSTGRES_PASSWORD}
JAVA_OPTS: ${JAVA_OPTS}
API_URL: ${API_URL}
restart: unless-stopped
ports:
- "8080"
volumes:
- ./backend/configs:/finwave/configs
- ./backend/logs:/finwave/logs
- ./backend/files:/finwave/files
networks:
fwnet:
aliases:
- backend
postgres:
image: postgres:13.3
environment:
POSTGRES_DB: "finwave"
POSTGRES_USER: "finwave"
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PGDATA: "/var/lib/postgresql/data/pgdata"
volumes:
- ./database:/var/lib/postgresql/data
healthcheck:
test: pg_isready -U finwave -d finwave
interval: 10s
timeout: 3s
retries: 5
restart: unless-stopped
ports:
- "5432"
networks:
fwnet:
aliases:
- postgres
networks:
fwnet: