-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (26 loc) · 729 Bytes
/
Makefile
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
SHELL := /bin/bash
.PHONY: create_cache create_database create_pgadmin
all: create_cache create_database create_pgadmin start
start:
docker start pocket-redis pocket-postgres pgadmin
create_cache:
docker run -d \
--name pocket-redis \
-p 6379:6379 \
redis:latest
create_database:
docker run -d \
--name pocket-postgres \
-e POSTGRES_USER=username \
-e POSTGRES_PASSWORD=password \
-e POSTGRES_DB=pocket \
-p 5432:5432 \
postgres:latest
create_pgadmin:
docker run -d \
--name pgadmin \
-e PGADMIN_DEFAULT_EMAIL=admin@admin.com \
-e PGADMIN_DEFAULT_PASSWORD=admin \
-p 9999:80 \
--link pocket-postgres:postgres \
-d dpage/pgadmin4