Skip to content

Commit 1cbb78f

Browse files
committed
feat: update
1 parent 61c87de commit 1cbb78f

File tree

10 files changed

+19
-14
lines changed

10 files changed

+19
-14
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ docker-down: # (Docker) Stop and removes containers and networks
6868
docker-compose down
6969

7070
docker-prod:
71-
docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d
71+
docker-compose -f docker-compose.yml -f docker-compose.override.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d
7272

7373
docker-setup: docker-up docker-migrate docker-build-db # (Docker) Start services, prepare the latest DB schema, populate the DB
7474

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ A RESTful API for Pokémon - [pokeapi.co](https://pokeapi.co)
2020

2121
> Beta GraphQL support is rolling out! Check out the [GraphQL paragraph](#graphql--) for more info.
2222
23-
## Setup   [![pyVersion37](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/download/releases/3.7/)
23+
## Setup   [![pyVersion310](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/download/releases/3.10/)
2424

2525
- Download this source code into a working directory, be sure to use the flag `--recurse-submodules` to clone also our submodules.
2626

Resources/compose/docker-compose-prod-graphql.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
version: '2.4'
22
services:
3+
cache:
4+
image: redis:7.0.7-alpine
35
db:
6+
image: postgres:15.1
47
environment:
58
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
69
POSTGRES_USER: "${POSTGRES_USER}"
710

811
app:
12+
image: pokeapi/pokeapi:master
913
env_file: .env
1014
restart: "no"
1115

1216
web:
17+
image: nginx:1.23.3-alpine
1318
volumes:
1419
- graphiql:/public-console:ro
1520

1621
graphql-engine:
22+
image: hasura/graphql-engine:v2.16.1
1723
cpus: 0.7
1824
memswap_limit: 3g
1925
mem_limit: 700m
@@ -34,5 +40,3 @@ services:
3440

3541
volumes:
3642
graphiql:
37-
38-
# docker-compose -f docker-compose.yml -f Resources/compose/docker-compose-prod-graphql.yml up -d

Resources/docker/app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.7-alpine
1+
FROM python:3.10-alpine
22

33
ENV PYTHONUNBUFFERED 1
44
ENV DJANGO_SETTINGS_MODULE 'config.docker-compose'

Resources/k8s/kustomize/base/deployments/graphql-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
done;
2626
containers:
2727
- name: graphql-engine
28-
image: hasura/graphql-engine:v2.0.0-alpha.5
28+
image: hasura/graphql-engine:v2.16.1
2929
ports:
3030
- containerPort: 8080
3131
env:

Resources/k8s/kustomize/base/deployments/haproxy-ingress-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
serviceAccountName: ingress-controller
1717
containers:
1818
- name: haproxy-ingress-controller
19-
image: quay.io/jcmoraisjr/haproxy-ingress:v0.12.3
19+
image: quay.io/jcmoraisjr/haproxy-ingress:v0.14.0
2020
resources:
2121
limits:
2222
memory: "256Mi"

Resources/k8s/kustomize/base/deployments/pokeapi-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
initContainers:
1818
- name: postgres-connection-checker
19-
image: postgres:13.3-alpine
19+
image: postgres:15.1-alpine
2020
command: ['sh', '-c']
2121
args:
2222
- until pg_isready -h postgresql -p 5432; do
@@ -26,6 +26,7 @@ spec:
2626
containers:
2727
- name: pokeapi
2828
image: pokeapi/pokeapi:master
29+
imagePullPolicy: Always
2930
ports:
3031
- containerPort: 8080
3132
securityContext: # CI: Github Actions kills this container if not run with root. Otherwise, it's safe to use the default pokeapi/pokeapi user and remove these lines.

Resources/k8s/kustomize/base/deployments/postgres-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: postgresql
19-
image: postgres:13.3-alpine
19+
image: postgres:15.1-alpine
2020
ports:
2121
- containerPort: 5432
2222
env:

Resources/k8s/kustomize/base/deployments/redis-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
spec:
1717
containers:
1818
- name: redis
19-
image: redis:6.2.3-alpine
19+
image: redis:7.0.7-alpine
2020
ports:
2121
- containerPort: 6379
2222
resources: {}

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
version: '2.4'
22
services:
33
cache:
4-
image: redis:alpine
4+
image: redis:7.0.7-alpine
55
volumes:
66
- redis_data:/data
77
restart: always
88

99
db:
10-
image: postgres
10+
image: postgres:15.1
1111
environment:
1212
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-pokemon}
1313
POSTGRES_USER: ${POSTGRES_USER:-ash}
@@ -33,7 +33,7 @@ services:
3333
restart: always
3434

3535
web:
36-
image: nginx:alpine
36+
image: nginx:1.23.3-alpine
3737
ports:
3838
- "80:80"
3939
- "443:443"
@@ -44,7 +44,7 @@ services:
4444
- ./Resources/nginx/ssl:/ssl:ro
4545
- graphql_cache:/tmp/cache
4646
graphql-engine:
47-
image: hasura/graphql-engine:v2.0.8
47+
image: hasura/graphql-engine:v2.16.1
4848
ports:
4949
- "8080:8080"
5050
depends_on:

0 commit comments

Comments
 (0)