-
Notifications
You must be signed in to change notification settings - Fork 161
/
docker-compose.yml
63 lines (63 loc) · 1.75 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
version: '3'
services:
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./scripts/docker-compose/nginx.conf:/etc/nginx/conf.d/default.conf
- ./:/opt/una
depends_on:
- php
php:
build:
context: .
dockerfile: scripts/docker-compose/PHP.Dockerfile
volumes:
- ./scripts/docker-compose/php.ini:/usr/local/etc/php/php.ini
- ./:/opt/una
depends_on:
- mysql
cron:
build:
context: .
dockerfile: scripts/docker-compose/Cron.Dockerfile
volumes:
- ./scripts/docker-compose/php.ini:/usr/local/etc/php/php.ini
- ./:/opt/una
depends_on:
- mysql
mysql:
image: mariadb:latest
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_USER: 'una'
MYSQL_PASSWORD: 'una'
MYSQL_DATABASE: 'una'
volumes:
- mysqldata:/var/lib/mysql
- ./scripts/docker-compose/db_dump.sql:/docker-entrypoint-initdb.d/db_dump.sql
- ./scripts/docker-compose/mysqld.cnf:/etc/mysql/conf.d/mysqld.cnf
ports:
- 3306:3306
jot:
image: unaio/jot-server:latest
restart: always
ports:
- 5000:5000
phpmyadmin:
image: phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_HOST=mysql
- PMA_USER=root
- PMA_PASSWORD=root
- UPLOAD_LIMIT=200M
volumes:
- ./scripts/docker-compose/phpmyadmin.inc.php:/etc/phpmyadmin/config.user.inc.php
depends_on:
- mysql
volumes:
mysqldata: {}