-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
60 lines (59 loc) · 1.25 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: '3.9'
services:
db:
build:
dockerfile: Dockerfile-mariadb
container_name: mariadb_l
volumes:
- ./init:/docker-entrypoint-initdb.d
- dbdata:/var/lib/mysql
environment:
MYSQL_RANDOM_ROOT_PASSWORD: 1
MYSQL_DATABASE: onlineshop
MYSQL_USER: onlineshop
MYSQL_PASSWORD: geheim
MYSQL_ROOT_HOST: "%"
LANG: C.UTF-8
ports:
- "6033:3306"
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
php-apache:
build:
dockerfile: Dockerfile-php
container_name: laravel
volumes:
- ./webapp:/var/www/html
- ./laravel:/home/laravel
ports:
- "8080:80"
- "7443:443"
- "8000:8000"
- "3333:3000"
- "5555:5173"
environment:
DB_HOST: db:3306
DB_USER: onlineshop
DB_NAME: onlineshop
DB_PASSWORD: geheim
restart: always
phpmyadmin:
build:
dockerfile: Dockerfile-phpmyadmin
container_name: pma_l
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_USER: onlineshop
PMA_PASSWORD: geheim
restart: always
ports:
- 8082:80
- 8443:443
volumes:
dbdata:
networks:
default:
name: webnet_l