forked from buku-masjid/buku-masjid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (40 loc) · 862 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
version: "3"
services:
server:
restart: unless-stopped
image: ghcr.io/buku-masjid/buku-masjid:latest
ports:
- "8000:80"
depends_on:
- mysql
environment:
- DB_HOST=mysql_host
- DB_PORT=3306
- DB_DATABASE=homestead
- DB_USERNAME=homestead
- DB_PASSWORD=secret
env_file:
- .env
networks:
- web-dev
mysql:
hostname: mysql_host
restart: unless-stopped
platform: linux/x86_64
image: "mysql:5.7"
ports:
- "3307:3306"
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_general_ci
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
volumes:
- database:/var/lib/mysql
networks:
- web-dev
networks:
web-dev:
volumes:
database: