This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose.yml
85 lines (77 loc) · 1.54 KB
/
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
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
79
80
81
82
83
84
85
version: '3.8'
services:
nest-api:
container_name: nest-graphql-api
build:
context: .
dockerfile: docker/Dockerfile
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
depends_on:
- postgres
env_file:
- .env
ports:
- ${SERVER_PORT}:${SERVER_PORT}
networks:
- nest-graphql-network
postgres:
image: postgres:latest
container_name: nest-postgres
restart: always
env_file:
- ".env"
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- nest-graphql-network
logging:
driver: none
pgadmin:
links:
- postgres:postgres
container_name: nest-pgadmin
image: dpage/pgadmin4
restart: unless-stopped
ports:
- '8080:80'
volumes:
- /data/pgadmin:/root/.pgadmin
env_file:
- .env
networks:
- nest-graphql-network
logging:
driver: none
redis:
image: "redis:alpine"
ports:
- "6379:6379"
networks:
- nestjs_network
logging:
driver: none
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
- redis
networks:
- nestjs_network
logging:
driver: none
volumes:
postgres_data:
driver: local
networks:
nest-graphql-network:
driver: bridge
name: nest-graphql-network