-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
43 lines (37 loc) · 929 Bytes
/
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
# Use root/example as user/password credentials
version: '3.3'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: william
MYSQL_USER: william
MYSQL_PASSWORD: william
MYSQL_DATABASE: TESTDB
volumes:
- "./docker/mysql/data/db:/var/lib/mysql"
- "./docker/mysql/data/conf:/etc/mysql/conf.d"
networks:
- mysql
#command: mysql -u root -pwilliam -e "use mysql; update user set host = '%' where user = 'william' and host='localhost';"
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- mysql
python_channel:
build: docker/tgchannel/
networks:
- mysql
depends_on:
- db
command: python run.py
environment:
TELEPOT_TOKEN: ${TELEPOT_TOKEN}
networks:
mysql:
driver: bridge