-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
127 lines (113 loc) · 3.17 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
services:
web:
container_name: absolute-web
image: nginx:latest
ports:
- 80:80
- 443:443
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/nginx/ssl
- ./app:/app
- ./logs:/logs
- chat-build:/app/js/chat
depends_on:
- mysql
- chat
networks:
- absolute
mysql:
container_name: absolute-mysql
image: mariadb:10.7
env_file:
- .env
environment:
MARIADB_AUTO_UPGRADE: 1
volumes:
- absolute-mysqldata:/var/lib/mysql
- ./.env:/data/application/.env
- ./config/my.cnf:/etc/mysql/my.cnf
- ./migrations/sql:/data/application/sql
- ./migrations/migrate.sh:/data/application/migrate.sh
- ./logs/mysql_errors.log:/var/log/mysql/error.log
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
ports:
- 3307:3306
networks:
- absolute
phpmyadmin:
container_name: absolute-phpmyadmin
image: phpmyadmin:latest
environment:
PMA_HOST: mysql
PMA_ABSOLUTE_URI: '/db/'
UPLOAD_LIMIT: 512M
depends_on:
- mysql
networks:
- absolute
certbot:
image: certbot/certbot:latest
volumes:
- ./certbot/www:/var/www/certbot
- ./certbot/conf:/etc/letsencrypt
networks:
- absolute
php:
container_name: absolute-php
build:
context: .
dockerfile: dockerfiles/absolute.dockerfile
env_file:
- .env
volumes:
- ./app:/app
- ./logs:/logs
- ./migrations:/migrations:ro
- ./config/opcache.ini:/usr/local/etc/php/conf.d/opcache.ini
- ./config/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./config/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- mysql
networks:
- absolute
discord:
container_name: absolute-discord
restart: on-failure
init: true
build:
context: .
dockerfile: dockerfiles/discord.dockerfile
volumes:
- ./absolute/discord:/app/discord
ports:
- 3000:3000
depends_on:
- mysql
networks:
- absolute
chat:
container_name: absolute-chat
restart: on-failure
init: true
build:
context: .
dockerfile: dockerfiles/chat.dockerfile
volumes:
- chat-build:/chat/build/client
ports:
- 8080:8080
depends_on:
- mysql
networks:
- absolute
volumes:
absolute-mysqldata: {}
chat-build: {}
networks:
absolute:
name: absolute
driver: bridge