-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose-dev.yaml
44 lines (44 loc) · 957 Bytes
/
compose-dev.yaml
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
version: '3.7'
services:
backend:
build:
context: server-nodejs
dockerfile: Dockerfile.dev
depends_on:
- primary
ports:
- "5000:5000"
environment:
- DB_HOST_PRIMARY=primary
- DB_HOST_REPLICA=primary
- DB_USER=testuser
- DB_PASSWORD=password
- DB_DATABASE=testdb
primary:
image: postgres
environment:
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=password
- POSTGRES_DB=testdb
volumes:
- pg-vol-debug2:/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:
- pgadmin-data:/var/lib/pgadmin
redis:
image: redis
ports:
- 6379:6379
environment:
- ALLOW_EMPTY_PASSWORD=yes
volumes:
pg-vol-debug2:
pgadmin-data: