-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-with-mysql.yaml
49 lines (48 loc) · 1.23 KB
/
docker-compose-with-mysql.yaml
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
version: '3'
services:
mysql:
image: "mysql:5.7"
restart: always
command: --default-authentication-plugin=mysql_native_password
ports:
- 3307:3306
environment:
MYSQL_USER: test
MYSQL_PASSWORD: test
MYSQL_DATABASE: repost_bot
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
networks:
- repost-bot-network
volumes:
- /home/ec2-user/repost-bot/mysql:/var/lib/mysql
api:
image: "pluhin/repost-bot-api"
restart: always
ports:
- 8080:8080
networks:
- repost-bot-network
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/repost_bot?useSSL=false&serverTimezone=UTC&useLegacyDatetimeCode=false
SPRING_DATASOURCE_USERNAME: test
SPRING_DATASOURCE_PASSWORD: test
tg_bot_token: TG_BOT_TOKEN
tg_bot_username: TG_BOT_USERNAME
tg_channel_name: "@TG_CHANNEL_NAME"
vk_app_id: VK_APP_ID
vk_app_secret: VK_APP_SECRET
vk_app_service: VK_APP_SERVICE
SPRING_PROFILES_ACTIVE: prod
depends_on:
- mysql
frontend:
image: "pluhin/repost-bot-frontend"
restart: always
ports:
- 80:80
networks:
- repost-bot-network
environment:
API_URL: 127.0.0.1:8080
networks:
repost-bot-network: