-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 961 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
version: '3'
services:
mongo:
image: mongo:5.0.13
container_name: mongo_database
restart: always
ports:
- '27017:27017'
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: buenavida
volumes:
- ./_mongo:/data/db
pg:
image: postgres:alpine3.16
container_name: pg_database
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DATABASE: buenavida
volumes:
- ./_postgres:/var/lib/postgresql/data
# Copy files into the container to initialize the
# first time
- ./database:/files
redis:
image: redis:6.2.7-bullseye
container_name: redis_database
restart: always
ports:
- '6379:6379'
environment:
REDIS_PASSWORD: admin
depends_on:
- pg
volumes:
- ./_redis:/data