-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml.example
48 lines (45 loc) · 1.01 KB
/
docker-compose.yaml.example
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
version: "3"
services:
api:
build:
context: .
target: development
volumes:
- ./:/usr/src/app
- /usr/src/app/node_module
ports:
- 3000:3000
depends_on:
- postgres
environment:
NODE_ENV: development
PORT: 3000
DATABASE_URL: postgres://postgres:postgres@postgres:5432/postgres
GOOGLE_CLIENT_ID: <client-id>
GOOGLE_CLIENT_SECRET: <client-secret>
JWT_SECRET_DEV: <jwt-sercret>
command: npm run dev
postgres:
image: postgres:15
environment:
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
pgadmin:
image: dpage/pgadmin4:7.5
environment:
PGADMIN_DEFAULT_EMAIL: postgres@email.com
PGADMIN_DEFAULT_PASSWORD: postgres
ports:
- "8090:80"
depends_on:
- postgres
volumes:
- pgadmin_data:/var/lib/pgadmin
volumes:
postgres_data:
pgadmin_data: