Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: align with february 2024 configurations #7

Merged
merged 1 commit into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .idea/discord.xml

This file was deleted.

15 changes: 0 additions & 15 deletions bot/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,3 @@ services:
reservations:
memory: 50MB
cpus: '0.10'
networks:
- bot
logging:
driver: json-file
options:
max-size: 50M
max-file: 3

networks:
bot:
driver: bridge
external: true
ipam:
config:
- subnet: 172.16.21.112/28
3 changes: 0 additions & 3 deletions bot/setup.sh

This file was deleted.

38 changes: 9 additions & 29 deletions captcha/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@ services:
memory: 50MB
cpus: '0.10'
networks:
- internal
- captcha-internal
volumes:
- postgres-data:/var/lib/postgresql/data
logging:
driver: json-file
options:
max-size: 10M
max-file: 3

postgres-exporter:
hostname: captcha.postgres-exporter
Expand All @@ -44,7 +39,7 @@ services:
DATA_SOURCE_NAME: "${POSTGRES_URL}"
networks:
- monitoring
- internal
- captcha-internal
deploy:
mode: replicated
replicas: 1
Expand All @@ -59,11 +54,6 @@ services:
reservations:
memory: 50MB
cpus: '0.10'
logging:
driver: local
options:
max-size: 1M
max-file: 3

application:
image: ghcr.io/teknologi-umum/captcha:edge
Expand All @@ -88,7 +78,7 @@ services:
UNDER_ATTACK__DATASTORE_PROVIDER: postgres
labels:
- "traefik.enable=true"
- "traefik.docker.network=captcha"
- "traefik.docker.network=public-web"
- "traefik.http.routers.captcha_bot.entrypoints=web,websecure"
- "traefik.http.routers.captcha_bot.rule=Host(`captcha.teknologiumum.com`)"
- "traefik.http.routers.captcha_bot.tls.certresolver=tlsresolver"
Expand Down Expand Up @@ -132,30 +122,20 @@ services:
memory: 25MB
cpus: '0.10'
networks:
- captcha
- internal
- captcha-internal
- public-web
depends_on:
postgres:
condition: service_healthy
logging:
driver: json-file
options:
max-size: 100M
max-file: 3

volumes:
postgres-data:

networks:
captcha:
captcha-internal:
driver: bridge
external: true
ipam:
config:
- subnet: 172.16.21.80/28
internal:
ipam:
config:
- subnet: 172.16.22.0/28
external: false
monitoring:
external: true
public-web:
external: true
3 changes: 0 additions & 3 deletions captcha/setup.sh

This file was deleted.

51 changes: 14 additions & 37 deletions conference/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
postgres:
image: postgres:15.3-bookworm
image: postgres:16-bookworm
environment:
POSTGRES_PASSWORD:
POSTGRES_USER:
Expand All @@ -27,13 +27,9 @@ services:
memory: 50MB
cpus: '0.10'
networks:
- internal
- conference-internal
volumes:
- postgres-data:/var/lib/postgresql/data
logging:
driver: local
options:
max-size: 10M

frontend:
image: ghcr.io/teknologi-umum/conf-frontend:latest
Expand All @@ -42,9 +38,9 @@ services:
SENTRY_DSN:
labels:
- "traefik.enable=true"
- "traefik.docker.network=conference"
- "traefik.docker.network=public-web"
- "traefik.http.routers.conf-frontend.entrypoints=web,websecure"
- "traefik.http.routers.conf-frontend.rule=Host(`conf.teknologiumum.com`)"
- "traefik.http.routers.conf-frontend.rule=Host(`conference.teknologiumum.com`)"
- "traefik.http.routers.conf-frontend.priority=1"
- "traefik.http.routers.conf-frontend.tls.certresolver=tlsresolver"
- "traefik.http.routers.conf-frontend.middlewares=conf-frontend-header,conf-frontend-rate,conf-frontend-redirectscheme"
Expand Down Expand Up @@ -85,11 +81,7 @@ services:
backend:
condition: service_started
networks:
- conference
logging:
driver: local
options:
max-size: 10M
- public-web

backend-migrate:
image: ghcr.io/teknologi-umum/conf-backend:latest
Expand Down Expand Up @@ -118,11 +110,7 @@ services:
memory: 50MB
cpus: '0.10'
networks:
- internal
logging:
driver: local
options:
max-size: 10M
- conference-internal

backend:
image: ghcr.io/teknologi-umum/conf-backend:latest
Expand All @@ -136,16 +124,16 @@ services:
SENTRY_DSN:
labels:
- "traefik.enable=true"
- "traefik.docker.network=conference"
- "traefik.docker.network=public-web"
- "traefik.http.routers.conf-backend.entrypoints=web,websecure"
- "traefik.http.routers.conf-backend.rule=Host(`conf.teknologiumum.com`) && PathPrefix(`/api`)"
- "traefik.http.routers.conf-backend.rule=Host(`conference.teknologiumum.com`) && PathPrefix(`/api`)"
- "traefik.http.routers.conf-backend.priority=1"
- "traefik.http.routers.conf-backend.tls.certresolver=tlsresolver"
- "traefik.http.routers.conf-backend.middlewares=conf-backend-header,conf-backend-rate,conf-backend-redirectscheme"
- "traefik.http.services.conf-backend.loadbalancer.server.port=8080"
- "traefik.http.services.conf-backend.loadbalancer.server.scheme=http"
- "traefik.http.services.conf-backend.loadbalancer.healthcheck.interval=30s"
- "traefik.http.services.conf-backend.loadbalancer.healthcheck.path=/"
- "traefik.http.services.conf-backend.loadbalancer.healthcheck.path=/ping"
- "traefik.http.middlewares.conf-backend-stripprefix.stripprefix.prefixes=/api"
- "traefik.http.middlewares.conf-backend-rate.ratelimit.average=50"
- "traefik.http.middlewares.conf-backend-rate.ratelimit.burst=15"
Expand Down Expand Up @@ -177,31 +165,20 @@ services:
memory: 50MB
cpus: '0.10'
networks:
- internal
- conference
- public-web
- conference-internal
depends_on:
backend-migrate:
condition: service_completed_successfully
postgres:
condition: service_healthy
logging:
driver: local
options:
max-size: 10M

volumes:
postgres-data:

networks:
conference:
driver: bridge
external: true
ipam:
config:
- subnet: 172.16.21.144/28
internal:
conference-internal:
driver: bridge
external: false
ipam:
config:
- subnet: 10.1.7.32/28
public-web:
external: true
66 changes: 66 additions & 0 deletions daemon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"log-driver": "local",
"log-opts": {"max-size": "1m", "max-file": "3"},
"default-address-pools": [
{
"base": "172.16.0.0/16",
"size": 24
},
{
"base": "172.17.0.0/16",
"size": 24
},
{
"base": "172.18.0.0/16",
"size": 24
},
{
"base": "172.19.0.0/16",
"size": 24
},
{
"base": "172.20.0.0/16",
"size": 24
},
{
"base": "172.21.0.0/16",
"size": 24
},
{
"base": "172.22.0.0/16",
"size": 24
},
{
"base": "172.23.0.0/16",
"size": 24
},
{
"base": "172.24.0.0/16",
"size": 24
},
{
"base": "172.25.0.0/16",
"size": 24
},
{
"base": "172.26.0.0/16",
"size": 24
},
{
"base": "172.27.0.0/16",
"size": 24
},
{
"base": "172.28.0.0/16",
"size": 24
},
{
"base": "172.29.0.0/16",
"size": 24
},
{
"base": "172.30.0.0/16",
"size": 24
}
]
}
Loading