-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (44 loc) · 994 Bytes
/
docker-compose.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
version: '3'
services:
node:
container_name: node-api
build:
context: .
dockerfile: .Dockerfile
depends_on:
- postgres
environment:
NODE_ENV: development
PORT: 4000
ports:
- "4000:4000"
postgres:
container_name: postgres
image: postgres:latest
ports:
- "5432:5432"
volumes:
- ./postgresdata:/var/lib/postgresql/data
- ./src/migrations/create_db.sh:/docker-entrypoint-initdb.d/create_db.sh
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: newPassword
POSTGRES_DB: superchat
pgadmin:
container_name: pgadmin
image: dpage/pgadmin4:4.18
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: secret
PGADMIN_LISTEN_PORT: 80
ports:
- "8080:80"
volumes:
- pgadmin-data:/var/lib/pgadmin
depends_on:
- postgres
volumes:
db-data:
pgadmin-data: