-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (52 loc) 路 1.15 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
services:
# bricks-api:
# container_name: bricks-api
# build:
# context: .
# dockerfile: Dockerfile
# restart: always
# ports:
# - '9000:9000'
# environment:
# - DATABASE_URL=postgresql://postgres:postgres@postgres:5432/bricks?schema=public
# env_file:
# - .env
# depends_on:
# - postgres
# - redis
# networks:
# - app-network
postgres:
container_name: postgres
image: postgres:alpine
restart: always
ports:
- '5432:5432'
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: bricks # dburl="postgresql://postgres:postgres@localhost:5432/bricks?schema=public"
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
container_name: cache
image: redis:alpine
ports:
- '6379:6379'
volumes:
- redis:/data
redis-insight:
container_name: redisinsight-gui
image: redis/redisinsight:latest
restart: always
ports:
- '5540:5540'
volumes:
- redis-insight:/data
depends_on:
- redis
volumes:
redis:
driver: local
redis-insight:
postgres-data: