-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
47 lines (47 loc) · 1.06 KB
/
docker-compose.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
45
46
47
version: '3.9'
services:
postgres-db:
image: postgres:14.5-alpine
restart: unless-stopped
environment:
POSTGRES_PASSWORD: Aa123456
POSTGRES_USER: template_db_user
POSTGRES_DB: template_db
ports:
- 5433:5432
volumes:
- postgres-data:/var/lib/postgresql/data
pgadmin-compose:
image: dpage/pgadmin4:6.13
restart: unless-stopped
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: Aa123456!
ports:
- '4000:80'
depends_on:
- postgres-db
volumes:
- pgadmin-data:/var/lib/pgadmin
api:
build:
context: .
dockerfile: Dockerfile.dev
args:
- PORT=3001
image: template-api
depends_on:
- postgres-db
env_file:
- .env
environment:
DATABASE_URL: postgresql://template_db_user:Aa123456@postgres-db:5432/template_db?schema=public
volumes:
- ./:/opt/app
ports:
- '3001:3001'
- '9229:9229'
command: npm run start:dev:migrate
volumes:
postgres-data:
pgadmin-data: