-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
89 lines (78 loc) · 1.72 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
services:
webapp:
image: webapp
build:
context: .
dockerfile: ./Dockerfile
ports:
- 8000:8000
environment:
DB_HOST: dbpostgres
DB_PORT: 5432
DB_NAME: userssm
DB_USER: user
DB_PASSWORD: password
networks:
- default
dbpostgres:
image: postgres
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: db
ports:
- 5432:5432
networks:
- default
volumes:
- postgres-data:/var/lib/postgresql/data
- ./db/:/docker-entrypoint-initdb.d
dbmongo:
image: mongo
command: mongod --bind_ip_all
restart: always
ports:
- 27017:27017
networks:
- default
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: root
volumes:
- mongodb-data:/data/db/
redis:
image: redis:latest
container_name: redis
ports:
- "6379:6379"
networks:
- default
# ---------------------------------------------------
# Interfaces para las BD
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: UserTest@Gmail.tec.cr
PGADMIN_DEFAULT_PASSWORD: pass
networks:
- default
ports:
- 5050:80
mongoexpress:
image: mongo-express
restart: always
ports:
- 8081:8081
networks:
- default
environment:
ME_CONFIG_MONGODB_SERVER: dbmongo
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: root
# ---------------------------------------------------
networks:
default:
driver: bridge
volumes:
postgres-data:
mongodb-data: