-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
88 lines (80 loc) · 1.86 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
86
87
88
version: '3.7'
services:
postgres:
image: postgres:alpine
container_name: postgres
restart: unless-stopped
volumes:
- pgdata:/var/lib/postgresql/data
- ./db.sh:/docker-entrypoint-initdb.d/db.sh
environment:
POSTGRES_USER: ${TYPEORM_USERNAME}
POSTGRES_PASSWORD: ${TYPEORM_PASSWORD}
POSTGRES_DB: taskmanager
ports:
- ${TYPEORM_PORT}:${TYPEORM_PORT}
networks:
- taskmanagernet
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
restart: unless-stopped
volumes:
- pgadmindata:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@taskmanager.com
PGADMIN_DEFAULT_PASSWORD: taskmanager
ports:
- '8080:80'
depends_on:
- postgres
networks:
- taskmanagernet
redis:
image: 'redis:alpine'
container_name: redis
restart: unless-stopped
volumes:
- redisdata:/data
ports:
- ${CACHE_PORT}:${CACHE_PORT}
networks:
- taskmanagernet
redis-commander:
image: rediscommander/redis-commander:latest
container_name: redis-commander
restart: unless-stopped
environment:
REDIS_HOSTS: dev:redis:${CACHE_PORT}:1,test:redis:${CACHE_PORT}:2
ports:
- '8081:8081'
depends_on:
- redis
networks:
- taskmanagernet
taskmanager:
build:
context: ./
dockerfile: Dockerfile
target: dev
image: taskmanager:dev
container_name: taskmanager
restart: unless-stopped
volumes:
- ./:/usr/src/taskmanager
- dependencies:/usr/src/taskmanager/node_modules
ports:
- ${SERVER_PORT}:${SERVER_PORT}
- ${DEBUG_PORT}:${DEBUG_PORT}
depends_on:
- redis
- postgres
networks:
- taskmanagernet
volumes:
pgdata:
redisdata:
pgadmindata:
dependencies:
networks:
taskmanagernet: