-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 846 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 846 Bytes
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
services:
app:
image: nook24/lagident:latest
#build: .
container_name: app
ports:
- 9933:8080
depends_on:
- db
environment:
PROFILE: prod
DB_TYPE: mysql # mysql or sqlite
DB_HOST: db
DB_POST: 3306
DB_USER: lagident
DB_PASS: pass
DB_NAME: lagident
HOUSEKEEPING_RETENTION_DAYS: 3 # override to keep more or fewer days of data
volumes:
- lagident-sqlite-data:/data
db:
image: mysql:8.0.31
container_name: db
environment:
MYSQL_DATABASE: lagident
MYSQL_USER: lagident
MYSQL_PASSWORD: pass
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
volumes:
- ./init-mysqldb.sql:/docker-entrypoint-initdb.d/init.sql
# A volume mounted to /data in the app container to store the sqlite database
volumes:
lagident-sqlite-data: