-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
44 lines (38 loc) · 959 Bytes
/
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
#docker-compose.yml
version: '3.4'
services:
webmaboss-db:
image: mariadb:10.5.4
container_name: webmaboss-db
restart: always
volumes:
- db:/var/lib/mysql
command: --max_allowed_packet=268435456 # Set max_allowed_packet to 256M (or any other value)
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_DATABASE=webmaboss
- MYSQL_USER=webmaboss
- MYSQL_PASSWORD=InsertAPassWordForTheDatabase
webmaboss:
build:
context: ./
dockerfile: docker/Dockerfile
image: sysbiocurie/webmaboss:1.0.1
container_name: webmaboss
volumes:
- data:/var/webmaboss/data
ports:
- "8000:8000"
user: www-data
environment:
- DB_NAME=webmaboss
- DB_USER=webmaboss
- DB_PASSWORD=InsertAPassWordForTheDatabase
- DB_HOST=webmaboss-db
- DB_PORT=3306
depends_on:
- webmaboss-db
restart: unless-stopped
volumes:
db:
data: