-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (70 loc) · 1.63 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: '3.6'
services:
teknasion-api:
image: teknasion/api
build:
context: ./src
dockerfile: Dockerfile
container_name: teknasion-api
environment:
- APACHE_RUN_USER=#1000
- APACHE_RUN_GROUP=#1000
volumes:
- ./src:/var/www/html
ports:
- 8008:80
links:
- teknasion-redis
- teknasion-mysql-db
- teknasion-phpmyadmin
logging:
driver: json-file
restart: always
networks:
backend:
aliases:
- app
teknasion-mysql-db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
container_name: teknasion-mysql-db
volumes:
- ./run/var:/var/lib/mysql
- ./logs/mysql:/var/log/mysql
- ./data:/docker-entrypoint-initdb.d
- ./config/mysql/:/etc/mysql/conf.d
environment:
- MYSQL_ROOT_PASSWORD=securerootpassword
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
networks:
backend:
aliases:
- teknasion-mysql-db
teknasion-redis:
container_name: teknasion-redis
image: redis
ports:
- "1234:1234"
networks:
backend:
aliases:
- teknasion-redis
teknasion-phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: teknasion-phpmyadmin
links:
- teknasion-mysql-db:teknasion-mysql-db
environment:
- MYSQL_ROOT_PASSWORD=securerootpassword
- PMA_HOST=teknasion-mysql-db
ports:
- "2525:80"
networks:
backend:
aliases:
- teknasion-mysql-db
networks:
backend:
name: teknasion_net