-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
106 lines (105 loc) · 2.49 KB
/
docker-compose.yml
File metadata and controls
106 lines (105 loc) · 2.49 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: "3.7"
services:
prisma:
image: prismagraphql/prisma:1.34
restart: unless-stopped
networks:
- backend
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
# uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
# managementApiSecret: my-secret
databases:
default:
connector: postgres
host: postgres
user: prisma
password: prisma
# host: 34.66.96.17
# user: postgres
# password: 5sabEOeGrg4IeKOa
rawAccess: true
port: 5432
migrations: true
postgres:
image: postgres:10.3
restart: unless-stopped
# Uncomment the next two lines to connect to your your database from outside the Docker environment, e.g. using a database GUI like Postico
ports:
- "5432:5432"
environment:
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: 5sabEOeGrg4IeKOa
POSTGRES_USER: prisma
POSTGRES_PASSWORD: prisma
PGDATA: /data/postgres
networks:
- backend
volumes:
- postgres:/var/lib/postgresql/data
pgadmin:
container_name: "pgadmin_container-stanford"
image: dpage/pgadmin4
volumes:
- pgadmin:/root/.pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: "dba@fabulas.io"
PGADMIN_DEFAULT_PASSWORD: "dba"
SERVER_PORT: 5050
ports:
- "5050:80"
networks:
- backend
restart: unless-stopped
# apollo:
# build:
# context: .
# dockerfile: ./Dockerfile
# volumes:
# - .:/usr/src/app
# - /usr/src/app/node_modules
# restart: unless-stopped
# networks:
# - backend
# ports:
# - "4000:4000"
# command: ["yarn", "migrate"]
# environment:
# - RHOST=redis
# depends_on:
# - redis
# - prisma
memcache:
image: bitnami/memcached:latest
networks:
- backend
restart: unless-stopped
hostname: memcache
ports:
- '11211:11211'
redis:
image: redis:alpine
command: ["redis-server", "--appendonly", "yes"]
hostname: redis
restart: unless-stopped
networks:
- backend
ports:
- "6379:6379"
volumes:
- redis:/data
healthcheck:
test: '[ $$(redis-cli ping) = "PONG" ] || exit 1 ]'
timeout: 2s
interval: 5s
retries: 5
volumes:
redis:
postgres:
pgadmin:
networks:
backend:
driver: bridge