-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
143 lines (134 loc) · 3.84 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: "3.8"
services:
test:
profiles:
- test
# environment:
# - VIRTUOSO_CONTAINER_NAME=test_virtuoso_1
build:
context: .
dockerfile: ./Dockerfile.local # Path to tests Dockerfile
# Define volumes to mount extractor scripts or dependencies
volumes:
- .:/app_test/tests
- ../code/transform:/app_test/transform
- ../code/extractors:/app_test/extractors
- ../code/load:/app_test/load
- ../data/transform_queue:/app_test/transform_queue
- ../data/load_queue:/app_test/load_queue
- ../code/config_data:/app_test/config_data
- /var/run/docker.sock:/var/run/docker.sock
# env_file:
# - fileName: .env
dns:
- 1.1.1.1
# Uncomment this line to test the script
command: ["tail", "-f", "/dev/null"]
ci_test:
profiles:
- ci_test
container_name: ci_test
build:
context: .
dockerfile: ./Dockerfile.remote # Path to test Dockerfile
# Define volumes to mount extractor scripts or dependencies
# environment:
# - VIRTUOSO_CONTAINER_NAME=tests-virtuoso-1
volumes:
- .:/app_test/tests
- ../code/transform:/app_test/transform
- ../code/extractors:/app_test/extractors
- ../code/load:/app_test/load
- ../data/transform_queue:/app_test/transform_queue
- ../data/load_queue:/app_test/load_queue
- ../code/config_data:/app_test/config_data
- /var/run/docker.sock:/var/run/docker.sock
dns:
- 1.1.1.1
# env_file:
# - fileName: .env
command: ["tail", "-f", "/dev/null"]
postgres:
profiles:
- ci_test
- test
image: postgres:14.1-alpine
container_name: postgres
environment:
POSTGRES_USER: test_user
POSTGRES_PASSWORD: test_password
POSTGRES_DB: test_DB
ports:
- '5432:5432'
volumes:
- ../code/load/sql_files/test_init.sql:/docker-entrypoint-initdb.d/init.sql
# mysql:
# profiles:
# - ci_test
# - test
# image: mysql:latest
# hostname: mysql
# environment:
# MYSQL_ROOT_PASSWORD: test_pass
# MYSQL_DATABASE: test_DB
# MYSQL_USER: test_user
# MYSQL_PASSWORD: test_pass
# MYSQL_USER_1: additional_user1
# MYSQL_PASSWORD_1: password1
# MYSQL_USER_2: additional_user2
# MYSQL_PASSWORD_2: password2
# volumes:
# - ../code/load/sql_files/test_init.sql:/docker-entrypoint-initdb.d/init.sql
# # - ../data/mysql_test_data:/var/lib/mysql
# ports:
# - "42333:3306"
# - "33060:33060"
# command: --init-file /docker-entrypoint-initdb.d/init.sql
virtuoso:
profiles:
- ci_test
- test
image: openlink/virtuoso-opensource-7:latest
hostname: virtuoso
container_name: virtuoso
ports:
- "1111:1111"
- "8890:8890"
environment:
DBA_PASSWORD: my_strong_password
volumes:
- ./Test_files/load_files/virtuoso_data:/opt/virtuoso-opensource/database
elastic:
profiles:
- ci_test
- test
image: docker.elastic.co/elasticsearch/elasticsearch:7.6.0
container_name: elastic
hostname: elastic
# privileged: true
environment:
- node.name=elastic
- "transport.host=localhost"
- "bootstrap.system_call_filter=false"
# - discovery.type=single-node
- cluster.name=es-docker-cluster
- cluster.initial_master_nodes=elastic
- bootstrap.memory_lock=true
# - node.max_local_storage_nodes=2
- "ES_JAVA_OPTS=-Xms256m -Xmx256m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- ./Test_files/load_files/elastic:/var/lib/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
# command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
# networks:
# my-macvlan-net:
# external: true
# name: my-macvlan-net
# host:
# external: true