-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (63 loc) · 1.47 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
version: '3.4'
services:
redis.cache:
image: redis
container_name: redis_cache
restart: always
ports:
- "6379:6379"
command: redis-server --save 20 1 --loglevel warning --requirepass eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
volumes:
- cache:/data
redis.insight:
image: redislabs/redisinsight:latest
container_name: redis_insight
ports:
- '8001:8001'
volumes:
- redisinsight:/data
#postgres.db:
# image: postgres:14.1-alpine
# container_name: postgres_db
# restart: always
# environment:
# - POSTGRES_USER=postgres
# - POSTGRES_PASSWORD=postgres
# ports:
# - '5432:5432'
# volumes:
# - db:/var/lib/postgresql/data
# - ./db/init.sql:/docker-entrypoint-initdb.d/create_tables.sql
handson.api:
image: ${DOCKER_REGISTRY-}handsonapi
container_name: handson_api
build:
context: .
dockerfile: HandsOn.API/Dockerfile
depends_on:
- redis.cache
#- postgres.db
ports:
- 3000:3000
environment:
ASPNETCORE_ENVIRONMENT: Development
REDIS_HOST: redis.cache
REDIS_PORT: 6379
REDIS_PASSWORD: eYVX7EwVmmxKPCDmwMtyKVge8oLd2t81
#DB_HOST: postgres.db
#DB_PORT: 5432
#DB_USER: postgres
#DB_PASSWORD: postgres
#DB_NAME: postgres
links:
- redis.cache
#- postgres.db
volumes:
- ./:/src
volumes:
cache:
driver: local
redisinsight:
driver: local
#db:
# driver: local