-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
64 lines (61 loc) · 1.54 KB
/
docker-compose.yml
File metadata and controls
64 lines (61 loc) · 1.54 KB
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
services:
db:
image: mysql:8.4
restart: always
container_name: db
environment:
MYSQL_ROOT_PASSWORD: myfinrootpassword
MYSQL_DATABASE: myfin
MYSQL_USER: myfin
MYSQL_PASSWORD: myfinpassword
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "--silent" ]
myfin-api:
image: ghcr.io/afaneca/myfin-api:latest
container_name: myfin-api
restart: unless-stopped
ports:
- "3001:3001"
environment:
# Database Configuration
- DB_NAME=myfin
- DB_USER=myfin
- DB_PW=myfinpassword
- DB_PORT=3306
- DB_HOST=db
# Email Configuration
- SMTP_HOST=
- SMTP_PORT=
- SMTP_SECURE=
- SMTP_USER=
- SMTP_PASSWORD=
- SMTP_FROM=
# Application Configuration
- PORT=3001
- LOGGING=false
- BYPASS_SESSION_CHECK=false
- ENABLE_USER_SIGNUP=false
# Reverse proxy trust for Express
# - TRUST_PROXY=1 trusts the first proxy hop (Traefik / Nginx proxy in front)
# - Override with other values as needed (see README/.env.example)
- TRUST_PROXY=1
depends_on:
db:
condition: service_healthy
myfin-frontend:
image: ghcr.io/afaneca/myfin:latest
container_name: myfin-frontend
restart: unless-stopped
ports:
- "8181:80"
depends_on:
myfin-api:
condition: service_healthy
environment:
- VITE_MYFIN_BASE_API_URL=https://myfin.domain.tld:3001
volumes:
db_data: