forked from Third-Culture-Software/bhima
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 1.02 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
services:
bhima:
build: .
image: thirdculturesoftware/bhima
restart: unless-stopped
ports:
- "8080:${PORT:-8080}"
environment:
- REDIS_HOST=redis
- DB_HOST=mysql
- DB_USER=${DB_USER:-bhima}
- DB_NAME=${DB_NAME:-bhima}
- DB_PASS=${DB_PASS:-cbeec29bac2f7726e1355c5a5bf10f35963cac8e77ed763bf2}
depends_on:
- mysql
- redis
networks:
- backend
mysql:
image: mysql:9.1
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
networks:
- backend
networks:
backend:
volumes:
mysqldata: