-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-core.yml
69 lines (64 loc) · 1.69 KB
/
docker-compose-core.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
version: '3.7'
networks:
projectx:
name: projectx-network
external: true
services:
projectx-postgres:
image: postgres:12.4
container_name: projectx-postgres
restart: unless-stopped
networks:
- projectx
ports:
- 5432:5432
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=root
# volumes:
# - /data/postgresql_data:/var/lib/postgresql/data/
projectx-rabbitmq:
image: rabbitmq:3-management
container_name: projectx-rabbitmq
restart: unless-stopped
networks:
- projectx
ports:
- 15672:15672
- 5672:5672
environment:
RABBITMQ_DEFAULT_USER: "guest"
RABBITMQ_DEFAULT_PASS: "guest"
RABBITMQ_DEFAULT_VHOST: "/"
# volumes:
# - /data/rabbitmq/data/:/var/lib/rabbitmq/
# - /data/rabbitmq/logs/:/var/log/rabbitmq/
projectx-redis:
container_name: projectx-redis
image: 'bitnami/redis:5.0.5'
environment:
#- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PASSWORD=RedisPassword
networks:
- projectx
ports:
- "6379:6379"
# volumes:
# - /data/redis:/bitnami/redis/data
# Reverse Proxy
projectx-nginx:
image: projectx-nginx
build:
context: .
dockerfile: nginx/Dockerfile
container_name: projectx-nginx
# depends_on:
# - projectx-identity # http://localhost/identity/swagger
# - projectx-blog # http://localhost/blog/swagger
# - projectx-messenger # http://localhost/messenger/swagger
# - projectx-realtime # http://localhost/realtime/swagger WebSocket has not configured for Nginx yet.
networks:
- projectx
ports:
- 80:80
- 443:443