-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
118 lines (109 loc) · 2.77 KB
/
Copy pathdocker-compose.yml
File metadata and controls
118 lines (109 loc) · 2.77 KB
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
version: '3'
services:
mongodb:
image: mongo:latest
container_name: mongodb
networks:
mynetwork:
ipv4_address: 192.168.1.11
ports:
- "27017:27017"
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
volumes:
- mongodata:/data/db
- ./mongodb-init.js:/docker-entrypoint-initdb.d/mongodb-init.js
mysql:
image: mysql:latest
container_name: mysql
networks:
mynetwork:
ipv4_address: 192.168.1.12
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: my_database
volumes:
- mysqldata.var/lib/mysql
- ./mysql-init.sql:/docker-entrypoint-initdb.d/mysql-init.sql
postgresql:
image: postgres:latest
container_name: postgresql
networks:
mynetwork:
ipv4_address: 192.168.1.13
ports:
- "5432:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: example
POSTGRES_DB: my_database
volumes:
- pgdata:/var/lib/postgresql/data
- ./postgres-init.sql:/docker-entrypoint-initdb.d/postgres-init.sql
redis:
image: redis:latest
container_name: redis
networks:
mynetwork:
ipv4_address: 192.168.1.14
ports:
- "6379:6379"
volumes:
- redisdata:/data
- ./redis-init.sh:/data/redis/redis-init.sh
- ./redis-entrypoint.sh:/data/redis-entrypoint.sh
entrypoint: ["sh", "/data/redis-entrypoint.sh"]
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.10.0
container_name: elasticsearch
networks:
mynetwork:
ipv4_address: 192.168.1.15
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- network.host=0.0.0.0
ports:
- "9200:9200"
- "9300:9300"
volumes:
- esdata:/usr/share/elasticsearch/data
- ./bulk_data.json:/usr/share/elasticsearch/config/bulk_data.json
- ./custom-entrypoint.sh:/custom-entrypoint.sh
entrypoint: ["/bin/bash", "/custom-entrypoint.sh"]
oracle:
container_name: oracle_db
image: gvenzl/oracle-free:23-slim
ports:
- "1521:1521"
environment:
- ORACLE_RANDOM_PASSWORD=yes
- APP_USER=my_database
- APP_USER_PASSWORD=my_password
- ORACLE_DATABASE=MYDB # This creates PDB named MYDB
- INIT_PDB=true
volumes:
- ./init-scripts:/container-entrypoint-initdb.d
networks:
mynetwork:
ipv4_address: 192.168.1.16
healthcheck:
test: ["CMD", "healthcheck.sh"]
interval: 30s
timeout: 10s
retries: 5
volumes:
mongodata:
mysqldata:
pgdata:
redisdata:
esdata:
networks:
mynetwork:
driver: bridge
ipam:
config:
- subnet: 192.168.1.0/24