Skip to content

Commit

Permalink
Clean up compose files one last time
Browse files Browse the repository at this point in the history
  • Loading branch information
grigorescu committed Apr 23, 2024
1 parent 716a226 commit de2d9a8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 10 deletions.
9 changes: 9 additions & 0 deletions compose.override.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ services:
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
healthcheck:
test: ["CMD", "curl", "-f", "http://django:8000/process_expired/"]
ports:
- "8000"

Expand Down Expand Up @@ -53,3 +55,10 @@ services:
ports:
- "179"
- "50051"

networks:
default:
ipam:
driver: default
config:
- subnet: 0200:c0:ff:ee::/48
9 changes: 8 additions & 1 deletion compose.override.production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ services:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
- /etc/vault.d/secrets/kv_root_security.env
volumes:
- ./staticfiles:/staticfiles
healthcheck:
test: ["CMD", "curl", "-f", "http://django:5000/process_expired/"]

postgres:
volumes:
Expand Down Expand Up @@ -43,7 +47,6 @@ services:
- "80:80"

redis:
image: redis:5.0
volumes:
- production_redis_data:/var/lib/redis:Z

Expand All @@ -66,6 +69,10 @@ services:
networks:
default:
enable_ipv6: true
ipam:
driver: default
config:
- subnet: 0200:c0:ff:ee::/48
peering:
enable_ipv6: true
driver: macvlan
Expand Down
9 changes: 0 additions & 9 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ services:
default: {}
sysctls:
- net.ipv6.conf.all.disable_ipv6=0
volumes:
- ./staticfiles:/staticfiles
command: /start
healthcheck:
test: ["CMD", "curl", "-f", "http://django:8000/process_expired/"]
interval: 30s
timeout: 30s
start_period: 30s
Expand Down Expand Up @@ -68,9 +65,3 @@ services:
sysctls:
- net.ipv6.conf.all.disable_ipv6=0

networks:
default:
ipam:
driver: default
config:
- subnet: 0200:c0:ff:ee::/48

0 comments on commit de2d9a8

Please sign in to comment.