-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
59 lines (54 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
version: '3.3'
services:
server:
build: backend
ports:
- "8000:8082"
depends_on:
- bsuirdb
networks:
- bsuir-network
restart: always
env_file:
- ./.env
bot:
build: bot
networks:
- bsuir-network
depends_on:
- server
env_file:
- ./.env
restart: always
news-parser:
build: news-parser
networks:
- bsuir-network
depends_on:
- server
volumes:
- last-update:/data
env_file:
- ./.env
restart: always
bsuirdb:
image: mysql:8.0
restart: always
environment:
MYSQL_DATABASE: 'bsuirapi'
MYSQL_USER: 'bsuir'
MYSQL_PASSWORD: 'root'
MYSQL_ROOT_PASSWORD: 'root'
networks:
- bsuir-network
ports:
- '3309:3306'
volumes:
- db-data:/var/lib/mysql
volumes:
db-data:
last-update:
keys:
networks:
bsuir-network:
driver: bridge