-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
78 lines (73 loc) · 1.52 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
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
78
version: "3.9"
services:
app:
build: .
restart: always
environment:
- APP_PORT=8080
- DATABASE_HOST=postgres
- DATABASE_PORT=5432
- DATABASE_NAME=postgres
- DATABASE_PASSWORD=postgres
- REDIS_CONNECTION_STRING=redis://redis:6379/0
- JWT_SECRET=fdkslhfdshgjldsngklds
- JWT_EXPIRATION=24h
ports:
- '8080:8080'
expose:
- '8080'
depends_on:
- postgres
networks:
- nodenotes
postgres:
image: postgres:14.1-alpine
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
ports:
- 5432:5432
volumes:
- postgres:/var/lib/postgresql/data
networks:
- nodenotes
redis:
image: redis:latest
restart: always
ports:
- "6379:6379"
volumes:
- cache:/data
environment:
- REDIS_PORT=6379
- REDIS_DATABASES=16
depends_on:
- postgres
networks:
- nodenotes
pgadmin:
image: dpage/pgadmin4:4.23
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
PGADMIN_LISTEN_PORT: 80
ports:
- 5050:80
volumes:
- pgadmin:/var/lib/pgadmin
depends_on:
- postgres
networks:
- nodenotes
networks:
nodenotes:
name: nodenotes
driver: bridge
volumes:
postgres:
name: postgres
driver: local
pgadmin:
cache:
driver: local