-
Notifications
You must be signed in to change notification settings - Fork 111
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (49 loc) · 1.24 KB
/
docker-compose.yml
File metadata and controls
53 lines (49 loc) · 1.24 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
services:
bhima:
# image: ghcr.io/third-culture-software/bhima:latest
build:
context: .
dockerfile: Dockerfile
stdin_open: true
tty: true
restart: unless-stopped
ports:
- "${PORT:-8080}:8080"
environment:
- REDIS_HOST=redis
- DB_HOST=mysql
- DB_USER=${DB_USER:-bhima}
- DB_NAME=${DB_NAME:-bhima}
- DB_PASS=${DB_PASS:-cbeec29bac2f7726e1355c5a5bf10f35963cac8e77ed763bf2}
- CHROME_OPTIONS=--no-sandbox --disable-setuid-sandbox --disable-dev-shm-usage
depends_on:
- mysql
- redis
networks:
- backend
mysql:
image: mysql:9.2
restart: unless-stopped
command:
- --sql-mode=STRICT_ALL_TABLES,NO_UNSIGNED_SUBTRACTION
volumes:
- mysqldata:/var/lib/mysql/
- ./server/models:/docker-entrypoint-initdb.d
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=${DB_USER:-bhima}
- MYSQL_DATABASE=${DB_NAME:-bhima}
- MYSQL_PASSWORD=${DB_PASS:-cbeec29bac2f7726e1355c5a5bf10f35963cac8e77ed763bf2}
networks:
- backend
redis:
image: redis:latest
restart: unless-stopped
ports:
- '${REDIS_PORT:-6379}:6379'
networks:
- backend
networks:
backend:
volumes:
mysqldata: