-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
62 lines (57 loc) · 1.34 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
version: "3"
services:
rkn-mysql:
container_name: rkn-mysql
restart: unless-stopped
image: mysql:8
command:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_bin
- --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: 'zapret'
MYSQL_ROOT_PASSWORD: 'root_zapret'
MYSQL_USER: 'zapret'
MYSQL_PASSWORD: 'zapret_pwd'
ports:
- '3306:3306'
volumes:
- ./.docker/mysql/data:/var/lib/mysql
- ./.docker/mysql/my.cnf:/etc/mysql/my.cnf
- ./.docker/mysql-files:/var/lib/mysql-files
networks:
- rkn
rkn-nginx:
container_name: rkn-nginx
restart: always
image: nginx
ports:
- 443:443
- 80:80
volumes:
- ./.docker/nginx/hosts:/etc/nginx/conf.d
- ./www:/var/www
- ./.docker/nginx/log:/var/log/nginx
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf
networks:
- rkn
rkn-php:
build:
context: ./.docker/php
dockerfile: Dockerfile
image: php
container_name: rkn-php
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./www:/var/www
- ./.docker/php/php.ini:/usr/local/etc/php/conf.d/uploads.ini
networks:
- rkn
depends_on:
- rkn-mysql
- rkn-nginx
networks:
rkn:
driver: bridge