-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
129 lines (121 loc) · 3.1 KB
/
docker-compose.dev.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
version: "3.7"
x-database-config: &DATABASE_CONFIG
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DATABASE_URL: postgres://${DB_USER}:${DB_PASSWORD}@master:${DB_PORT}/${DB_NAME}
x-pgadmin-auth: &PGADMIN_AUTH
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
PGHERO_USERNAME: ${PGADMIN_DEFAULT_EMAIL}
PGHERO_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD}
services:
master:
build:
context: ./citus/
dockerfile: DockerFile
args:
- HTTP_PROXY=${HTTP_PROXY}
image: ${COMPOSE_PROJECT_NAME}_master
container_name: ${COMPOSE_PROJECT_NAME}_master
restart: on-failure
networks:
ors_dev:
aliases:
- db
- master
- ${COMPOSE_PROJECT_NAME}_db
- ${COMPOSE_PROJECT_NAME}_master
volumes:
- ${VOLUME_PATH}/ors_db_data/master:/var/lib/postgres/data
ports:
- ${DB_PORT}:5432
labels:
- com.citusdata.role=Master
environment:
<<: *DATABASE_CONFIG
CITUS_NODE: master
worker:
build:
context: ./citus/
dockerfile: DockerFile
args:
- HTTP_PROXY=${HTTP_PROXY}
image: ${COMPOSE_PROJECT_NAME}_worker
container_name: ${COMPOSE_PROJECT_NAME}_worker
deploy:
replicas: 4
restart: on-failure
networks:
ors_dev:
aliases:
- worker
- ${COMPOSE_PROJECT_NAME}_worker
volumes:
- ${VOLUME_PATH}/ors_db_data/worker:/var/lib/postgres/data
labels:
- com.citusdata.role=Worker
depends_on:
- manager
environment:
<<: *DATABASE_CONFIG
CITUS_NODE: worker
manager:
image: citusdata/membership-manager:latest
container_name: ${COMPOSE_PROJECT_NAME}_manager
restart: on-failure
networks:
ors_dev:
aliases:
- manager
- ${COMPOSE_PROJECT_NAME}_manager
volumes:
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- master
environment:
<<: *DATABASE_CONFIG
CITUS_HOST: ${COMPOSE_PROJECT_NAME}_master
admin:
build:
context: ./admin/
dockerfile: DockerFile
args:
<<: *DATABASE_CONFIG
HTTP_PROXY: ${HTTP_PROXY}
image: ${COMPOSE_PROJECT_NAME}_admin
container_name: ${COMPOSE_PROJECT_NAME}_admin
restart: on-failure
networks:
ors_dev:
aliases:
- admin
- ${COMPOSE_PROJECT_NAME}_admin
ports:
- ${DB_ADMIN_PORT}:80
environment:
<<: *PGADMIN_AUTH
PGADMIN_CONFIG_ENHANCED_COOKIE_PROTECTION: '"true"'
dashboard:
build:
context: ./dashboard/
dockerfile: DockerFile
args:
<<: *DATABASE_CONFIG
HTTP_PROXY: ${HTTP_PROXY}
image: ${COMPOSE_PROJECT_NAME}_dashboard
container_name: ${COMPOSE_PROJECT_NAME}_dashboard
restart: on-failure
networks:
ors_dev:
aliases:
- dashboard
- ${COMPOSE_PROJECT_NAME}_dashboard
ports:
- ${DB_DASHBOARD_PORT}:8080
environment:
<<: *DATABASE_CONFIG
<<: *PGADMIN_AUTH
networks:
ors_dev: {}