Skip to content

Commit 79e8fb4

Browse files
committed
chore: Change default service names add container name
Make it easier to swap out container names
1 parent 622a1ac commit 79e8fb4

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

docker-compose.full-gluetun.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: m3u-editor
22
services:
33
gluetun:
44
image: qmcgaw/gluetun:latest
5-
container_name: gluetun
5+
container_name: m3u-editor-gluetun
66
cap_add:
77
- NET_ADMIN
88
devices:
@@ -27,7 +27,8 @@ services:
2727
- '${APP_PORT:-36400}:${APP_PORT:-36400}'
2828
restart: unless-stopped
2929

30-
m3u-editor-nginx:
30+
nginx:
31+
container_name: m3u-editor-nginx
3132
build:
3233
context: .
3334
dockerfile: Dockerfile
@@ -54,7 +55,8 @@ services:
5455
network_mode: "service:gluetun"
5556
restart: unless-stopped
5657

57-
m3u-editor-postgres:
58+
postgres:
59+
container_name: m3u-editor-postgres
5860
build:
5961
context: .
6062
dockerfile: Dockerfile
@@ -83,7 +85,8 @@ services:
8385
network_mode: "service:gluetun"
8486
restart: unless-stopped
8587

86-
m3u-editor-redis:
88+
redis:
89+
container_name: m3u-editor-redis
8790
build:
8891
context: .
8992
dockerfile: Dockerfile
@@ -106,7 +109,8 @@ services:
106109
network_mode: "service:gluetun"
107110
restart: unless-stopped
108111

109-
m3u-editor-fpm:
112+
fpm:
113+
container_name: m3u-editor-fpm
110114
build:
111115
context: .
112116
dockerfile: Dockerfile
@@ -167,7 +171,8 @@ services:
167171
network_mode: "service:gluetun"
168172
restart: unless-stopped
169173

170-
m3u-proxy:
174+
proxy:
175+
container_name: m3u-proxy
171176
image: sparkison/m3u-proxy:latest
172177
build:
173178
context: ../m3u-proxy

docker-compose.full.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
name: m3u-editor
88

99
services:
10-
m3u-editor-nginx:
10+
nginx:
11+
container_name: m3u-editor-nginx
1112
build:
1213
context: .
1314
dockerfile: Dockerfile
@@ -31,7 +32,8 @@ services:
3132
- '${APP_PORT:-36400}:${APP_PORT:-36400}'
3233
restart: unless-stopped
3334

34-
m3u-editor-postgres:
35+
postgres:
36+
container_name: m3u-editor-postgres
3537
build:
3638
context: .
3739
dockerfile: Dockerfile
@@ -56,7 +58,8 @@ services:
5658
retries: 10
5759
restart: unless-stopped
5860

59-
m3u-editor-redis:
61+
redis:
62+
container_name: m3u-editor-redis
6063
build:
6164
context: .
6265
dockerfile: Dockerfile
@@ -75,7 +78,8 @@ services:
7578
retries: 15
7679
restart: unless-stopped
7780

78-
m3u-editor-fpm:
81+
fpm:
82+
container_name: m3u-editor-fpm
7983
build:
8084
context: .
8185
dockerfile: Dockerfile
@@ -133,7 +137,8 @@ services:
133137
retries: 10
134138
restart: unless-stopped
135139

136-
m3u-proxy:
140+
proxy:
141+
container_name: m3u-proxy
137142
image: sparkison/m3u-proxy:latest
138143
build:
139144
context: ../m3u-proxy

0 commit comments

Comments
 (0)