Skip to content

Commit 1c5f16b

Browse files
authored
Update docker-compose.yml
1 parent 3f424c1 commit 1c5f16b

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

docker-compose.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,34 @@ x-app: &default-app
33
context: "."
44
target: "app"
55
args:
6-
- "UID=${UID:-1000}"
7-
- "GID=${GID:-1000}"
8-
- "RAILS_ENV=${RAILS_ENV:-production}"
9-
- "NODE_ENV=${NODE_ENV:-production}"
6+
- "UID=$${UID:-1000}"
7+
- "GID=$${GID:-1000}"
8+
- "RAILS_ENV=$${RAILS_ENV:-production}"
9+
- "NODE_ENV=$${NODE_ENV:-production}"
1010
depends_on:
1111
- "postgres"
1212
- "redis"
1313
env_file:
1414
- ".env"
15-
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
15+
restart: "$${DOCKER_RESTART_POLICY:-unless-stopped}"
1616
stop_grace_period: "3s"
1717
tty: true
1818
volumes:
19-
- "${DOCKER_WEB_VOLUME:-./public:/app/public}"
19+
- "$${DOCKER_WEB_VOLUME:-./public:/app/public}"
2020

2121
x-assets: &default-assets
2222
build:
2323
context: "."
2424
target: "assets"
2525
args:
26-
- "UID=${UID:-1000}"
27-
- "GID=${GID:-1000}"
28-
- "RAILS_ENV=${RAILS_ENV:-production}"
29-
- "NODE_ENV=${NODE_ENV:-production}"
26+
- "UID=$${UID:-1000}"
27+
- "GID=$${GID:-1000}"
28+
- "RAILS_ENV=$${RAILS_ENV:-production}"
29+
- "NODE_ENV=$${NODE_ENV:-production}"
3030
env_file:
3131
- ".env"
3232
profiles: ["assets"]
33-
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
33+
restart: "$${DOCKER_RESTART_POLICY:-unless-stopped}"
3434
stop_grace_period: "3s"
3535
tty: true
3636
volumes:
@@ -41,15 +41,15 @@ services:
4141
deploy:
4242
resources:
4343
limits:
44-
cpus: "${DOCKER_POSTGRES_CPUS:-0}"
45-
memory: "${DOCKER_POSTGRES_MEMORY:-0}"
44+
cpus: "$${DOCKER_POSTGRES_CPUS:-0}"
45+
memory: "$${DOCKER_POSTGRES_MEMORY:-0}"
4646
environment:
47-
POSTGRES_USER: "${POSTGRES_USER}"
48-
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
49-
# POSTGRES_DB: "${POSTGRES_DB}"
47+
POSTGRES_USER: "$${POSTGRES_USER}"
48+
POSTGRES_PASSWORD: "$${POSTGRES_PASSWORD}"
49+
# POSTGRES_DB: "$${POSTGRES_DB}"
5050
image: "postgres:15.1-bullseye"
5151
profiles: ["postgres"]
52-
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
52+
restart: "$${DOCKER_RESTART_POLICY:-unless-stopped}"
5353
stop_grace_period: "3s"
5454
volumes:
5555
- "postgres:/var/lib/postgresql/data"
@@ -58,11 +58,11 @@ services:
5858
deploy:
5959
resources:
6060
limits:
61-
cpus: "${DOCKER_REDIS_CPUS:-0}"
62-
memory: "${DOCKER_REDIS_MEMORY:-0}"
61+
cpus: "$${DOCKER_REDIS_CPUS:-0}"
62+
memory: "$${DOCKER_REDIS_MEMORY:-0}"
6363
image: "redis:7.0.7-bullseye"
6464
profiles: ["redis"]
65-
restart: "${DOCKER_RESTART_POLICY:-unless-stopped}"
65+
restart: "$${DOCKER_RESTART_POLICY:-unless-stopped}"
6666
stop_grace_period: "3s"
6767
volumes:
6868
- "redis:/data"
@@ -72,16 +72,16 @@ services:
7272
deploy:
7373
resources:
7474
limits:
75-
cpus: "${DOCKER_WEB_CPUS:-0}"
76-
memory: "${DOCKER_WEB_MEMORY:-0}"
75+
cpus: "$${DOCKER_WEB_CPUS:-0}"
76+
memory: "$${DOCKER_WEB_MEMORY:-0}"
7777
healthcheck:
78-
test: "${DOCKER_WEB_HEALTHCHECK_TEST:-curl localhost:8000/up}"
78+
test: "$${DOCKER_WEB_HEALTHCHECK_TEST:-curl localhost:8000/up}"
7979
interval: "60s"
8080
timeout: "3s"
8181
start_period: "5s"
8282
retries: 3
8383
ports:
84-
- "${DOCKER_WEB_PORT_FORWARD:-127.0.0.1:8000}:${PORT:-8000}"
84+
- "$${DOCKER_WEB_PORT_FORWARD:-127.0.0.1:8000}:$${PORT:-8000}"
8585
profiles: ["web"]
8686

8787
worker:
@@ -91,8 +91,8 @@ services:
9191
deploy:
9292
resources:
9393
limits:
94-
cpus: "${DOCKER_WORKER_CPUS:-0}"
95-
memory: "${DOCKER_WORKER_MEMORY:-0}"
94+
cpus: "$${DOCKER_WORKER_CPUS:-0}"
95+
memory: "$${DOCKER_WORKER_MEMORY:-0}"
9696
profiles: ["worker"]
9797

9898
cable:
@@ -102,10 +102,10 @@ services:
102102
deploy:
103103
resources:
104104
limits:
105-
cpus: "${DOCKER_CABLE_CPUS:-0}"
106-
memory: "${DOCKER_CABLE_MEMORY:-0}"
105+
cpus: "$${DOCKER_CABLE_CPUS:-0}"
106+
memory: "$${DOCKER_CABLE_MEMORY:-0}"
107107
ports:
108-
- "${DOCKER_CABLE_PORT_FORWARD:-127.0.0.1:28080}:28080"
108+
- "$${DOCKER_CABLE_PORT_FORWARD:-127.0.0.1:28080}:28080"
109109
profiles: ["cable"]
110110

111111
js:

0 commit comments

Comments
 (0)