-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yml
73 lines (72 loc) · 1.44 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
version: '3.7'
services:
# API container
api:
container_name: api
# build:
# context: ./
image: phucpham1301/hotelprisma-v1.0:github-actions-docker-v1
restart: on-failure
volumes:
- api:/usr/src/app
ports:
- 3000:3000
env_file:
- ./.env
depends_on:
- redis
- prisma
networks:
- api
redis:
image: redis:latest
container_name: redis
restart: on-failure
ports:
- 6379:6379
volumes:
- redis-data:/var/lib/redis
- ./redis.conf:/usr/local/etc/redis/redis.conf
entrypoint: redis-server /usr/local/etc/redis/redis.conf
networks:
api:
ipv4_address: 172.28.1.4
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- '4466:4466'
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mongo
uri: mongodb://prisma:prisma@mongo:27017/HotelPrisma?authSource=admin
database: HotelPrisma
networks:
- api
depends_on:
- mongo
mongo:
image: mongo:3.6
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: prisma
MONGO_INITDB_ROOT_PASSWORD: prisma
ports:
- '27017:27017'
volumes:
- mongo:/var/lib/mongo
networks:
- api
volumes:
mongo:
api:
redis-data:
networks:
api:
ipam:
driver: default
config:
- subnet: 172.28.0.0/16