-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (57 loc) · 1.28 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
version: '3'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_USER: auction_user
MYSQL_PASSWORD: auction_bot
volumes:
- dbdata:/var/lib/mysql
- dbinit:/docker-entrypoint-initdb.d/:ro
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost"]
timeout: 20s
retries: 10
phpmyadmin2:
image: phpmyadmin/phpmyadmin
container_name: pma2
links:
- db
environment:
PMA_HOST: db
PMA_PORT: 3306
PMA_ARBITRARY: 1
restart: always
ports:
- 8081:80
environment:
TZ: "Europe/Rome"
app:
image: asaku01/asaku_telegram_bot_auction:latest
container_name: telegram_auction_bot
environment:
TBOT_TOKEN: 1805311871:AAFlXtOGhBzjFOvNhcTNwcMbEFuxZSp6Cx0
RDS_HOSTNAME: db
RDS_USERNAME: auction_user
RDS_PASSWORD: auction_bot
RDS_DATABASE: auction_bot
RDS_PORT: 3306
depends_on:
db:
condition: service_healthy
volumes:
dbdata:
driver: local
driver_opts:
o: bind
type: none
device: ./db_data
dbinit:
driver: local
driver_opts:
o: bind
type: none
device: ./db_init