-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose-nginx.yml
78 lines (72 loc) · 1.48 KB
/
docker-compose-nginx.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
version: '3.8'
services:
cdp4_db:
image: stariongroup/cdp4-database-community-edition:3.4.0
shm_size: 2gb
hostname: cdp4-postgresql
command: postgres -c max_locks_per_transaction=1024
environment:
- POSTGRES_PASSWORD=${DB_POSTGRESPASSWORD}
- POSTGRES_USER=postgres
networks:
cdp4:
aliases:
- cdp4-postgresql
container_name: cdp4-database-community-edition
restart: always
ports:
- '${DB_HOSTPORT}:5432'
expose:
- '5432'
volumes:
- cdpdbdata:/var/lib/postgresql/data
- cdpdblogs:/logs
cdp4_webservices:
hostname: cdp4-webservices
restart: always
build: .
networks:
cdp4:
aliases:
- cdp4-webservices
depends_on:
- cdp4_db
expose:
- '5000'
volumes:
- cdpwslogs:/app/logs
- cdpwsstorage:/app/storage
- cdpwsupload:/app/upload
nginx:
image: nginx:latest
container_name: cdp4-nginx
restart: always
depends_on:
- cdp4_webservices
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
ports:
- 8088:80
networks:
cdp4:
aliases:
- cdp4-nginx
rabbitmq:
image: "rabbitmq:3-management"
container_name: rabbitmq
restart: always
ports:
- 15672:15672
networks:
- cdp4
volumes:
- 'rabbitmq_data:/data'
networks:
cdp4:
volumes:
cdpdbdata:
cdpdblogs:
cdpwslogs:
cdpwsstorage:
cdpwsupload:
rabbitmq_data: