-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (58 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
63 lines (58 loc) · 1.49 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
54
55
56
57
58
59
60
61
62
63
version: '3.8'
services:
# Service untuk PHP & Apache
app:
container_name: app
build:
context: .
dockerfile: ./docker/php/Dockerfile
ports:
# Port 8080 di host akan mengarah ke port 80 (Frontend) di container
- "8080:80"
# Port 8081 di host akan mengarah ke port 81 (Backend) di container
- "8081:81"
# Port 8022 di host akan mengarah ke port 82 (Public) di container
- "8082:82"
volumes:
# Sinkronisasi seluruh folder ommu-web-app ke /var/www/html di container
# Ini membuat folder 'frontend' dan 'backend' tersedia di dalam container
- ../app:/var/www/html
depends_on:
- db
restart: always
networks:
- ommu-network
# Service untuk Database MariaDB
db:
image: mariadb:10.11
container_name: db
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: root_password_ganti_dengan_yang_aman
MYSQL_DATABASE: ommudb
MYSQL_USER: ommuuser
MYSQL_PASSWORD: password_ganti_dengan_yang_aman
volumes:
- ../db_data:/var/lib/mysql
restart: always
networks:
- ommu-network
# Service untuk Centrifugo Websocket
centrifugo:
image: centrifugo/centrifugo:v5.4
container_name: centrifugo
ports:
- "8000:8000"
volumes:
- ./docker/centrifugo:/centrifugo
command: centrifugo -c config.json
restart: always
networks:
- ommu-network
networks:
ommu-network:
driver: bridge
volumes:
db_data:
driver: local