-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcompose.yaml
42 lines (42 loc) · 971 Bytes
/
compose.yaml
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
services:
app:
container_name: app
build:
context: .
dockerfile: ./utils/recipes/Dockerfile_app
volumes:
- .:/app
ports:
- "8002:80"
environment:
- SERVER_NAME=:80
database:
container_name: cyber-tp5-database
image: mariadb:10.5.8
ports:
- "3306:3306"
restart: always
environment:
MYSQL_DATABASE: app_db
MYSQL_ROOT_PASSWORD: studoo
#MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
#MYSQL_USER: app_db_user
#MYSQL_PASSWORD: app_db_password
volumes:
- ./var/dbdata:/var/lib/mysql
- ./docs/init.sql:/docker-entrypoint-initdb.d/init.sql
phpmyadmin:
container_name: cyber-tp5-pma
image: phpmyadmin/phpmyadmin:latest
ports:
- "8081:80"
environment:
PMA_HOST: database
PMA_PORT: 3306
PMA_ARBITRARY: 1
UPLOAD_LIMIT: 1G
MEMORY_LIMIT: 512M
MAX_EXECUTION_TIME: 0
restart: always
links:
- database