forked from vrishtrix/fullstack-ts-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·43 lines (43 loc) · 1.09 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
version: '3'
services:
redis:
image: redis
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
ports:
- ${REDIS_PORT}:${REDIS_PORT}
environment:
name: ${REDIS_NAME}
requirepass: ${REDIS_PASS}
prisma:
image: prismagraphql/prisma:1.16
restart: always
depends_on:
- postgres
ports:
- ${PRISMA_PORT}:${PRISMA_PORT}
environment:
PRISMA_CONFIG: |
port: ${PRISMA_PORT}
databases:
default:
connector: postgres
host: postgres
port: ${POSTGRES_PORT}
user: ${POSTGRES_USER}
password: ${POSTGRES_PASS}
migrations: true
postgres:
image: postgres:10.5
restart: always
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASS}
POSTGRES_PORT: ${POSTGRES_PORT}
volumes:
- postgres:/var/lib/postgresql/data
volumes:
postgres: