-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
62 lines (57 loc) · 1.53 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.8'
services:
app:
container_name: telegram-stickeroptimizer-app
build:
context: .
dockerfile: Dockerfile
ports:
- "80:80"
depends_on:
- db
volumes:
- ./:/var/www/html
- ./.docker/000-default.conf:/etc/apache2/sites-available/000-default.conf
- ./.docker/docker-php-ext-xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
networks:
- telegram-stickeroptimizer-network
db:
container_name: telegram-stickeroptimizer-db
image: mariadb
volumes:
- db-volume:/var/lib/mysql
- ./.docker/my.cnf:/etc/mysql/mariadb.conf.d/my.cnf
- ./.docker/dumps:/home/dumps
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: botdb
MYSQL_USER: botdb
MYSQL_PASSWORD: botdb
ports:
- "3306:3306"
networks:
- telegram-stickeroptimizer-network
db-test:
container_name: telegram-stickeroptimizer-db-test
image: mariadb
volumes:
- db-test-volume:/var/lib/mysql
- ./.docker/my.cnf:/etc/mysql/mariadb.conf.d/my.cnf
- ./.docker/dumps:/home/dumps
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: botdb-test
MYSQL_USER: botdb-test
MYSQL_PASSWORD: botdb-test
ports:
- "3307:3306"
networks:
- telegram-stickeroptimizer-network
volumes:
db-volume:
name: telegram-stickeroptimizer-db-volume
db-test-volume:
name: telegram-stickeroptimizer-db-test-volume
networks:
telegram-stickeroptimizer-network:
driver: bridge