-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
36 lines (32 loc) · 923 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
version: '3'
services:
infclass:
build: ./
restart: always
ports:
- "127.0.0.1:8002:8002"
environment:
- SERVER_IP=${SERVER_IP}
- ECON_PORT=${ECON_PORT}
- ECON_PASSWORD=${ECON_PASSWORD}
- MYSQL_USER=${DB_USER:-user}
- MYSQL_PASSWORD=${DB_PASS:-pass}
- MYSQL_DB=${DB_NAME:-infclass}
infclass_db:
image: mariadb:10.3.29
restart: always
volumes:
- infclass_data:/var/lib/mysql
ports:
- "127.0.0.1:3306:3306"
environment:
- MARIADB_ROOT_PASSWORD=${DB_PASS:-pass}
- MARIADB_USER=${DB_USER:-user}
- MARIADB_PASSWORD=${DB_PASS:-pass}
- MARIADB_DATABASE=${DB_NAME:-infclass}
infclass_web:
build: ./web
ports:
- "127.0.0.1:82:80"
volumes:
infclass_data: