This repository has been archived by the owner on Sep 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (68 loc) · 1.76 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
version: "3.8"
services:
chat:
build:
context: .
image: werewolf-chat:dev-latest
volumes:
- ./:/app
ports:
- 3000:${SOCKET_PORT}
entrypoint:
- /bin/sh
command:
- -c
- npm run start:dev
networks:
- postgres-network
- redis-network
depends_on:
- postgres
- redis
restart: unless-stopped
postgres:
image: postgres:14.1-alpine3.15
environment:
- POSTGRES_DB=${DB_DATABASE}
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
volumes:
- ./.docker/postgres/data:/var/lib/postgresql/data
networks:
- postgres-network
restart: unless-stopped
adminer:
image: dockette/adminer:pgsql
ports:
- 8081:80
networks:
- postgres-network
depends_on:
- postgres
restart: unless-stopped
redis:
image: redis:6.2.5-alpine3.14
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
volumes:
- ./.docker/redis/data:/data
command: redis-server --requirepass ${REDIS_PASSWORD}
networks:
- redis-network
restart: unless-stopped
rediscommander:
image: rediscommander/redis-commander:latest
environment:
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REDIS_PASSWORD: ${REDIS_PASSWORD}
ports:
- 8082:8081
networks:
- redis-network
depends_on:
- redis
restart: unless-stopped
networks:
postgres-network:
redis-network: