-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
71 lines (71 loc) · 1.43 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
version: "3.8"
services:
api:
container_name: tapmoney_api_${NODE_ENV}
image: tapmoney_api_${NODE_ENV}
environment:
- NODE_ENV=${NODE_ENV}
build:
context: .
target: ${NODE_ENV}
dockerfile: Dockerfile
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
ports:
- ${PORT}:${PORT}
- 9229:9229
command: npm run start:${NODE_ENV}
env_file:
- .env
networks:
- tapmoney
depends_on:
- postgres
- redis
restart: unless-stopped
postgres:
container_name: postgres
image: postgres:latest
ports:
- ${POSTGRES_DB_PORT}:${POSTGRES_DB_PORT}
volumes:
- ./pgdata:/postgresdata
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
PGDATA: /var/lib/postgresql/postgresdata
networks:
- tapmoney
pgadmin:
links:
- postgres:postgres
container_name: pgadmin
image: dpage/pgadmin4
ports:
- "8080:80"
volumes:
- ./pgdata/pgadmin:/root/ .pgadmin
env_file:
- .env
networks:
- tapmoney
redis:
image: "redis:alpine"
ports:
- "6379:6379"
networks:
- tapmoney
redis-commander:
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOSTS=local:redis:6379
ports:
- "8081:8081"
depends_on:
- redis
networks:
- tapmoney
networks:
tapmoney: