forked from code100x/muzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
107 lines (102 loc) · 2.38 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
services:
app:
container_name: muzer-docker
build:
context: ./next-app/
dockerfile: Dockerfile.dev
env_file:
- path: ./next-app/.env
ports:
- ${APP_PORT}:3000
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
develop:
watch:
- action: sync
path: ./next-app
target: /usr/src/app
ignore:
- node_modules/
- action: rebuild
path: ./next-app/package.json
target: /usr/src/app
ignore:
- node_modules/
postgres:
container_name: prisma-postgres
image: postgres:alpine
restart: always
env_file:
- path: ./next-app/.env
ports:
- ${POSTGRES_PORT}:5432
volumes:
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
prisma-studio:
container_name: prisma-studio
image: timothyjmiller/prisma-studio:latest
restart: unless-stopped
env_file:
- path: ./next-app/.env
depends_on:
- app
ports:
- ${PRISMA_STUDIO_PORT}:5555
redis:
container_name: redis-server
image: redis/redis-stack:latest
restart: always
env_file:
- path: ./ws/.env
ports:
- ${REDIS_PORT}:6379
- ${REDIS_BROWSER_STACK_PORT}:8001
environment:
REDIS_ARGS: "--requirepass ${REDIS_PASSWORD} --user ${REDIS_USERNAME} on >${REDIS_PASSWORD} ~* allcommands --user default off nopass nocommands"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
websockets:
container_name: websockets
restart: always
build:
context: ./ws/
dockerfile: Dockerfile.dev
env_file:
- path: ./ws/.env
ports:
- ${PORT}:8080
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
develop:
watch:
- action: sync
path: ./ws
target: /usr/src/app
ignore:
- node_modules/
- action: rebuild
path: ./ws/package.json
target: /usr/src/app
ignore:
- node_modules/
volumes:
postgres-data:
external: false
redis-data:
external: false