-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.sample.yml
55 lines (53 loc) · 1.45 KB
/
docker-compose.sample.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
# Copyright (C) Abraham Aondowase Yusuf - All Rights Reserved
# Unauthorized copying of this file, via any medium is strictly prohibited
# Proprietary and confidential
# This file is subject to the terms and conditions defined in
# file 'LICENSE', which is part of this source code package.
# Written by Abraham Aondowase Yusuf <[email protected]>, April 2018
version: '3.1'
services:
# Database Container
mariadb:
container_name: db
image: mariadb
restart: always
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: webcrawler
MYSQL_USER: webcrawler
MYSQL_PASSWORD: MySuperSecretPassword
ports:
- "3306"
volumes:
- ./data:/var/lib/mysql
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-time-zone='+01:00'
# Tika Server Container
tikaserver:
container_name: tikaserver
image: logicalspark/docker-tikaserver
restart: always
ports:
- "9998"
# App Container
app:
container_name: app
build: .
restart: always
environment:
DB_PASSWORD: MySuperSecretPassword
DB_HOST: mariadb
TIKA_CLIENT_ONLY: 1
TIKA_SERVER_ENDPOINT: http://tikaserver:9998
SCRAPY_SETTINGS_MODULE: webcrawler.settings
ports:
- "5000:5000"
links:
- mariadb
- tikaserver
volumes:
- ./api_logs:/home/webcrawler/logs
- ./media_store:/tmp
volumes:
data:
api_logs:
media_store: