Skip to content

Commit de6b6c0

Browse files
committed
chore(prod): remove volumes from fs
1 parent 0c582df commit de6b6c0

7 files changed

Lines changed: 37 additions & 124 deletions

File tree

deployments/prod/certbot/Dockerfile

Lines changed: 0 additions & 15 deletions
This file was deleted.

deployments/prod/certbot/refresh-ssl.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

deployments/prod/certbot/start-ssl-refresh.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

deployments/prod/docker-compose.yaml

Lines changed: 31 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,19 @@ name: pixel-battle
22

33
services:
44
https-server:
5-
image: nginx:1.27-alpine3.21-perl
5+
image: pixel-battle-https-server:prod
6+
build:
7+
context: ../../
8+
dockerfile: deployments/prod/https-server/Dockerfile
9+
tags:
10+
- "pixel-battle-https-server:prod"
11+
612
container_name: pixel-battle-https-server
713
restart: always
814
labels:
915
pixel-battle: true
1016
deployment: prod
1117
volumes:
12-
- ./https-server/nginx.conf:/etc/nginx/nginx.conf
1318
- ssl-data:/mnt/ssl
1419
depends_on:
1520
backend:
@@ -28,60 +33,15 @@ services:
2833
cpus: 0.025
2934
mem_limit: 10mb
3035

31-
http-server:
32-
container_name: pixel-battle-http-server
33-
image: nginx:1.27-alpine3.21-perl
34-
restart: always
35-
labels:
36-
pixel-battle: true
37-
deployment: prod
38-
volumes:
39-
- ./http-server/nginx.conf:/etc/nginx/nginx.conf
40-
- certbot-acme-challenge:/mnt/acme-challenge
41-
ports:
42-
- 80:80
43-
healthcheck:
44-
test: wget http-server/healthcheck -q -O /dev/null
45-
start_period: 1m
46-
start_interval: 2s
47-
interval: 10s
48-
networks:
49-
- http-server-net
50-
cpus: 0.025
51-
mem_limit: 6mb
52-
53-
certbot:
54-
container_name: pixel-battle-certbot
55-
build:
56-
context: ../../
57-
dockerfile: deployments/prod/certbot/Dockerfile
58-
tags:
59-
- "pixel-battle-certbot:prod"
60-
restart: always
61-
labels:
62-
pixel-battle: true
63-
deployment: prod
64-
volumes:
65-
- ssl-data:/mnt/ssl
66-
- certbot-acme-challenge:/mnt/acme-challenge
67-
depends_on:
68-
http-server:
69-
condition: service_healthy
70-
environment:
71-
DOMAIN: ${DOMAIN}
72-
DOMAIN_EMAIL: ${DOMAIN_EMAIL}
73-
networks:
74-
- certbot-net
75-
cpus: 0.5
76-
mem_limit: 100mb
77-
7836
backend:
79-
container_name: pixel-battle-backend
37+
image: pixel-battle-backend:prod
8038
build:
8139
context: ../../
8240
dockerfile: deployments/prod/backend/Dockerfile
8341
tags:
8442
- "pixel-battle-backend:prod"
43+
44+
container_name: pixel-battle-backend
8545
restart: always
8646
labels:
8747
pixel-battle: true
@@ -113,7 +73,13 @@ services:
11373
- redis-cluster-net
11474

11575
redis1:
116-
image: redis:7.4.1-alpine3.20
76+
image: pixel-battle-reids:prod
77+
build:
78+
context: ../../
79+
dockerfile: deployments/prod/redis/Dockerfile
80+
tags:
81+
- "pixel-battle-reids:prod"
82+
11783
container_name: pixel-battle-redis1
11884
restart: always
11985
labels:
@@ -122,7 +88,6 @@ services:
12288
redis: true
12389
db: true
12490
volumes:
125-
- ./redis:/mnt
12691
- redis1-data:/data
12792
command: redis-server /mnt/redis.conf
12893
cpus: 0.05
@@ -137,7 +102,13 @@ services:
137102
ipv4_address: 192.168.150.11
138103

139104
redis2:
140-
image: redis:7.4.1-alpine3.20
105+
image: pixel-battle-reids:prod
106+
build:
107+
context: ../../
108+
dockerfile: deployments/prod/redis/Dockerfile
109+
tags:
110+
- "pixel-battle-reids:prod"
111+
141112
container_name: pixel-battle-redis2
142113
restart: always
143114
labels:
@@ -146,7 +117,6 @@ services:
146117
redis: true
147118
db: true
148119
volumes:
149-
- ./redis:/mnt
150120
- redis2-data:/data
151121
command: redis-server /mnt/redis.conf
152122
cpus: 0.05
@@ -161,7 +131,13 @@ services:
161131
ipv4_address: 192.168.150.12
162132

163133
redis3:
164-
image: redis:7.4.1-alpine3.20
134+
image: pixel-battle-reids:prod
135+
build:
136+
context: ../../
137+
dockerfile: deployments/prod/redis/Dockerfile
138+
tags:
139+
- "pixel-battle-reids:prod"
140+
165141
container_name: pixel-battle-redis3
166142
restart: always
167143
labels:
@@ -170,7 +146,6 @@ services:
170146
redis: true
171147
db: true
172148
volumes:
173-
- ./redis:/mnt
174149
- redis3-data:/data
175150
command: redis-server /mnt/redis.conf
176151
cpus: 0.05
@@ -184,13 +159,6 @@ services:
184159
redis-cluster-net:
185160
ipv4_address: 192.168.150.13
186161

187-
networks:
188-
http-server-net:
189-
driver: bridge
190-
191-
certbot-net:
192-
driver: bridge
193-
194162
backend-net:
195163
driver: bridge
196164

@@ -206,11 +174,6 @@ volumes:
206174
pixel-battle: true
207175
deployment: prod
208176

209-
certbot-acme-challenge:
210-
labels:
211-
pixel-battle: true
212-
deployment: prod
213-
214177
redis1-data:
215178
labels:
216179
pixel-battle: true

deployments/prod/http-server/nginx.conf

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM nginx:1.27-alpine3.21-perl
2+
3+
COPY deployments/prod/https-server/nginx.conf /etc/nginx/nginx.conf

deployments/prod/redis/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM redis:7.4.1-alpine3.20
2+
3+
COPY deployments/prod/redis/ /mnt

0 commit comments

Comments
 (0)