-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (52 loc) · 1007 Bytes
/
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
version: '3'
networks:
music-match-network:
driver: bridge
services:
# nest:
# build:
# dockerfile: api.Dockerfile
# env_file:
# - ./apps/api/.env
# ports:
# - '3001:3000'
# depends_on:
# - redis
# - postgres
# networks:
# - music-match-network
#
# nginx:
# build:
# dockerfile: nginx.Dockerfile
# env_file:
# - ./apps/api/.env
# ports:
# - '80:80'
# depends_on:
# - nest
# networks:
# - music-match-network
postgres:
env_file: ./docker-env.env
image: postgres
restart: always
ports:
- '5000:5432'
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- music-match-network
redis:
image: redis
restart: always
ports:
- '6379:6379'
command: redis-server --include /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
networks:
- music-match-network
volumes:
pgdata:
external: true