-
Notifications
You must be signed in to change notification settings - Fork 180
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
98 lines (89 loc) · 2.41 KB
/
docker-compose.yml
File metadata and controls
98 lines (89 loc) · 2.41 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
version: '3'
services:
web:
image: nginx:latest
ports:
- "80:80"
volumes:
- ./scripts/docker-compose/nginx.conf:/etc/nginx/conf.d/default.conf
- ./:/opt/una
networks:
unanet:
aliases:
- localhost.una.io
php:
build:
context: .
dockerfile: scripts/docker-compose/PHP.Dockerfile
volumes:
- ./scripts/docker-compose/php.ini:/usr/local/etc/php/php.ini
- ./:/opt/una
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- unanet
cron:
build:
context: .
dockerfile: scripts/docker-compose/Cron.Dockerfile
volumes:
- ./scripts/docker-compose/php.ini:/usr/local/etc/php/php-cron.ini
- ./:/opt/una
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- unanet
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
networks:
- unanet
jot:
image: unaio/jot-server:latest
restart: always
ports:
- 5555:5000
networks:
- unanet
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
networks:
- unanet
mailpit:
image: axllent/mailpit
container_name: mailpit
restart: unless-stopped
ports:
- "8025:8025"
environment:
MP_MAX_MESSAGES: 5000
MP_SMTP_AUTH_ACCEPT_ANY: 1
MP_SMTP_AUTH_ALLOW_INSECURE: 1
networks:
- unanet
volumes:
mysqldata: {}
networks:
unanet: