-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (65 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
services:
einote-db:
image: postgres:16-alpine
container_name: einote-db
restart: unless-stopped
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: einote
TZ: 'Asia/Jakarta'
volumes:
- ./composedata/postgresql:/var/lib/postgresql/data
- ./init_db.sh:/docker-entrypoint-initdb.d/init_db.sh:ro
networks:
- default
healthcheck:
test: [ "CMD-SHELL", "pg_isready -d postgres" ]
interval: 30s
timeout: 10s
retries: 5
# ports:
# - "7432:5432"
einote-be:
image: einote:core-0.1.0
container_name: einote-be
restart: unless-stopped
environment:
PORT: 8080
DB_USER: root
DB_PASSWORD: root
DB_NAME: einote
DB_HOST: einote-db
DB_PORT: 5432
TABLE_NOTE: note
TABLE_NOTEBOOK: notebook
# ports:
# - 8080:8080
networks:
- default
depends_on:
- einote-db
einote-fe:
image: einote:ui-0.1.0
container_name: einote-fe
restart: unless-stopped
# ports:
# - 3000:3000
volumes:
- ./nginx.fe.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- default
depends_on:
- einote-be
einote-proxy:
image: nginx:alpine3.19-slim
container_name: einote-px
restart: unless-stopped
ports:
- 4848:80 # changing port? don't forget adjust REACT_APP_BACKEND_API in Dockerfile.ui
networks:
- default
depends_on:
- einote-fe
volumes:
- ./nginx.main.conf:/etc/nginx/conf.d/default.conf