Skip to content

Commit 3e112cf

Browse files
committed
Update dev docker compose
1 parent 5dbc192 commit 3e112cf

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

docker/docker-compose.yml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
services:
2-
timescaledb:
3-
image: timescale/timescaledb:latest-pg17
4-
container_name: sr24_timescaledb
2+
postgres:
3+
image: postgres:18.1
4+
container_name: sr21_postgres
55
restart: unless-stopped
66
environment:
7-
POSTGRES_USER: ${POSTGRES_USER:-postgres}
8-
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-postgres}
9-
POSTGRES_DB: ${POSTGRES_DB:-airportsdb}
7+
POSTGRES_USER: ${POSTGRES_USER}
8+
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
9+
POSTGRES_DB: ${POSTGRES_DB}
10+
POSTGRES_PORT: ${POSTGRES_PORT}
1011
ports:
11-
- "${POSTGRES_PORT:-5432}:5432"
12+
- "${POSTGRES_PORT}:5432"
1213
volumes:
13-
- timescaledb_data:/var/lib/postgresql/data
14-
command: ["postgres", "-c", "shared_preload_libraries=timescaledb"]
14+
- postgres_data:/var/lib/postgresql
1515

1616
pgadmin:
1717
image: dpage/pgadmin4
@@ -23,17 +23,21 @@ services:
2323
ports:
2424
- "8080:80"
2525
depends_on:
26-
- timescaledb
26+
- postgres
2727
volumes:
2828
- pgadmin_data:/var/lib/pgadmin
2929

3030
redis:
31-
image: redis:latest
32-
container_name: sr24_redis
31+
image: redis:8.4.0
32+
container_name: sr21_redis
3333
restart: unless-stopped
34+
environment:
35+
REDIS_PORT: ${REDIS_PORT}
36+
REDIS_PASSWORD: ${REDIS_PASSWORD}
37+
REDIS_DB: ${REDIS_DB}
3438
ports:
35-
- "6379:6379"
36-
command: ["redis-server", "--appendonly", "yes"]
39+
- "${REDIS_PORT}:6379"
40+
command: [ "redis-server", "--appendonly", "yes"]
3741
volumes:
3842
- redis_data:/data
3943

@@ -47,6 +51,6 @@ services:
4751
- redis
4852

4953
volumes:
50-
timescaledb_data:
54+
postgres_data:
5155
pgadmin_data:
5256
redis_data:

0 commit comments

Comments
 (0)