-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-http-debug.yml
77 lines (74 loc) · 1.77 KB
/
docker-compose-http-debug.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
services:
backend:
build:
context: ./http-server-nodejs
dockerfile: Dockerfile.dev
ports:
- '5000:5000'
volumes:
- ./http-server-nodejs:/app
environment:
- NODE_ENV=development
- DB_HOST_PRIMARY=primary
- DB_HOST_REPLICA=primary
# react:
# build:
# context: ./client-reactjs
# dockerfile: Dockerfile.debug
# ports:
# - '3000:3000'
# volumes:
# - ./client-reactjs:/app
# environment:
# - NODE_ENV=development
# primary:
# hostname: 'primary'
# image: crunchydata/crunchy-postgres:centos8-13.6-4.7.5
# environment:
# - PGHOST=/tmp
# - MAX_CONNECTIONS=10
# - MAX_WAL_SENDERS=5
# - PG_MODE=primary
# - MODE=postgres
# - PG_PRIMARY_USER=primaryuser
# - PG_PRIMARY_PASSWORD=password
# - PG_DATABASE=testdb
# - PG_USER=testuser
# - PG_PASSWORD=password
# - PG_ROOT_PASSWORD=password
# - PG_PRIMARY_PORT=5432
# volumes:
# - pg-vol-debug:/pgdata
# deploy:
# placement:
# constraints:
# - node.labels.type == primary
# - node.role == worker
primary:
image: postgres
environment:
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=password
- POSTGRES_DB=testdb
volumes:
- http-pg-vol-debug:/var/lib/postgresql/data
pgadmin:
container_name: pgadmin4_container
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- '5050:80'
volumes:
- http-pgadmin-data:/var/lib/pgadmin
redis:
image: redis
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
http-pg-vol-debug:
http-pgadmin-data: