-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
43 lines (39 loc) · 876 Bytes
/
docker-compose.yaml
File metadata and controls
43 lines (39 loc) · 876 Bytes
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
services:
# --- database section ---
db:
image: mysql:8.0
container_name: db-container
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- db_data:/var/lib/mysql
restart: always
# --- soal section ---
soal:
build: .
container_name: soal-container
environment:
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_DB=${MYSQL_DATABASE}
ports:
- "10000:10000"
- "10500:10500"
# Add more ports as needed
depends_on:
- db
# --- adminer section ---
adminer:
image: adminer
container_name: adminer
restart: always
ports:
- 8080:8080
depends_on:
- db
volumes:
db_data: