-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (54 loc) · 1.25 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
version: "3.8"
services:
mongodb:
container_name: mongodb-container
image: mongo:5
restart: always
volumes:
- db_data:/data/db
environment:
MONGO_INITDB_DATABASE: TemplateDb
MONGO_INITDB_ROOT_USERNAME: mgadmin
MONGO_INITDB_ROOT_PASSWORD: example
ports:
- "27017:27017"
networks:
- application-network
# reverse-proxy:
# image: nginx:latest
# container_name: nginx-container
# ports:
# - 80:80
# depends_on:
# - postgres
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf
# extra_hosts:
# - "host.docker.internal:host-gateway"
# redis:
# container_name: redis-container
# image: redis:7.0.0-alpine
# ports:
# - 6380:6379
# networks:
# - application-network
# environment:
# - ALLOW_EMPTY_PASSWORD=yes
# # command: redis-server --appendonly yes
# volumes:
# - "./db_data/redis1-volume:/data"
# postgres:
# image: postgres:15
# environment:
# - POSTGRES_DB=mydb
# - POSTGRES_USER=test
# - POSTGRES_PASSWORD=test
# volumes:
# - db_data:/var/lib/postgresql/data
# ports:
# - "5432:5432"
volumes:
db_data:
networks:
application-network:
driver: bridge