-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
68 lines (63 loc) · 1.25 KB
/
docker-compose.yaml
File metadata and controls
68 lines (63 loc) · 1.25 KB
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
services:
# web:
# build:
# context: ./web
# dockerfile: Dockerfile.web
# container_name: ff-web
# restart: always
# ports:
# - "3000:3000"
# env_file:
# - ./web/.env.local
# depends_on:
# - server
server:
build:
context: .
container_name: ff-server
restart: always
ports:
- "8090:8195"
volumes:
- ./:/app
env_file:
- .env
depends_on:
- db
- redis
db:
image: postgres:16.3
container_name: postgres-db
environment:
POSTGRES_DB: ff_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: secretpassword123
networks:
- backend
volumes:
- db-data:/var/lib/postgresql/data
ports:
- "5433:5432"
redis:
image: redis:6.2-alpine
restart: unless-stopped
container_name: redis
ports:
- "6379:6379"
command: redis-server --save 60 1 --loglevel warning
redis-commander:
container_name: redis-commander
hostname: redis-commander
image: rediscommander/redis-commander:latest
environment:
- REDIS_HOST=redis
ports:
- "127.0.0.1:8081:8081"
depends_on:
- redis
restart: unless-stopped
volumes:
db-data:
networks:
backend:
driver: bridge