forked from SebasGA19/spAInews
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-dev-databases.yaml
63 lines (60 loc) · 1.45 KB
/
compose-dev-databases.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# This docker compose will be used by API developers since it
# only starts the Databases and expose their ports
version: "3.3"
networks:
spainews:
external: false
services:
redis:
networks:
- spainews
container_name: spainews-redis
image: redis:latest
restart: unless-stopped
ports:
- "127.0.0.1:6379:6379"
mongo:
container_name: spainews-mongo
image: mongo:latest
ports:
- "127.0.0.1:27017:27017"
restart: unless-stopped
networks:
- spainews
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
MONGO_INITDB_DATABASE: spainews
volumes:
- type: bind
source: ./mongo-initdb.d
target: /docker-entrypoint-initdb.d
read_only: true
- ./mongo-data:/data/db
mariadb:
networks:
- spainews
container_name: spainnews-mariadb
restart: unless-stopped
image: mariadb:latest
ports:
- "127.0.0.1:3306:3306"
volumes:
- type: bind
source: ./mariadb-init.d
target: /docker-entrypoint-initdb.d
read_only: true
- ./mariadb-data:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: spainews
MARIADB_DATABASE: spainews
MARIADB_USER: spainews
MARIADB_PASSWORD: spainews
smtp:
networks:
- spainews
container_name: spainews-mailhog
restart: unless-stopped
image: mailhog/mailhog
ports:
- "127.0.0.1:25:1025"