auto commit
This commit is contained in:
parent
afe2aef4fe
commit
a9079c29d6
@ -38,7 +38,9 @@ services:
|
||||
retries: 5
|
||||
|
||||
fems-timescaledb:
|
||||
image: timescale/timescaledb:latest-pg16
|
||||
build:
|
||||
context: ./fems-timescaledb
|
||||
dockerfile: Dockerfile
|
||||
container_name: fems-timescaledb
|
||||
restart: unless-stopped
|
||||
env_file:
|
||||
@ -54,11 +56,12 @@ services:
|
||||
- TIMESCALEDB_PASSWORD=${TIMESCALEDB_PASSWORD}
|
||||
- LANG=C.UTF-8
|
||||
- LC_ALL=C.UTF-8
|
||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||
- shared_preload_libraries=timescaledb
|
||||
volumes:
|
||||
- fems_timescaledb:/var/lib/postgresql/data/pgdata
|
||||
command: postgres -c shared_preload_libraries=timescaledb
|
||||
- fems_timescaledb:/var/lib/postgresql/data
|
||||
- ./fems-timescaledb/postgresql.conf:/etc/postgresql/postgresql.conf:ro
|
||||
- ./fems-timescaledb/pg_hba.conf:/etc/postgresql/pg_hba.conf:ro
|
||||
- ./fems-timescaledb/init-scripts:/docker-entrypoint-initdb.d
|
||||
command: postgres -c config_file=/etc/postgresql/postgresql.conf
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U postgres"]
|
||||
interval: 10s
|
||||
|
@ -2015,3 +2015,42 @@ To fix this, use `chmod 0700 /mosquitto/config/passwd`.
|
||||
1732091065: New connection from ::1:45302 on port 1883.
|
||||
1732091065: New client connected from ::1:45302 as auto-0AF148D0-D530-2B3B-19BF-44245913DE70 (p2, c1, k60, u'fems').
|
||||
1732091065: Client auto-0AF148D0-D530-2B3B-19BF-44245913DE70 closed its connection.
|
||||
1732091336: mosquitto version 2.0.20 starting
|
||||
1732091336: Config loaded from /mosquitto/config/mosquitto.conf.
|
||||
1732091336: Opening ipv4 listen socket on port 1883.
|
||||
1732091336: Opening ipv6 listen socket on port 1883.
|
||||
1732091336: Opening websockets listen socket on port 8883.
|
||||
1732091336: mosquitto version 2.0.20 running
|
||||
1732091366: New connection from ::1:57920 on port 1883.
|
||||
1732091366: New client connected from ::1:57920 as auto-187DDAAB-FE3A-FF54-3D01-1FA3207BC0D3 (p2, c1, k60, u'fems').
|
||||
1732091366: Client auto-187DDAAB-FE3A-FF54-3D01-1FA3207BC0D3 closed its connection.
|
||||
1732091397: New connection from ::1:52804 on port 1883.
|
||||
1732091397: New client connected from ::1:52804 as auto-D74654D1-767A-8FC3-809E-B2FD9C38738A (p2, c1, k60, u'fems').
|
||||
1732091397: Client auto-D74654D1-767A-8FC3-809E-B2FD9C38738A closed its connection.
|
||||
1732092090: New connection from ::1:53538 on port 1883.
|
||||
1732092090: New client connected from ::1:53538 as auto-4873FFAF-5119-6C94-BAF7-CF9F115808DC (p2, c1, k60, u'fems').
|
||||
1732092090: Client auto-4873FFAF-5119-6C94-BAF7-CF9F115808DC closed its connection.
|
||||
1732092122: New connection from ::1:52474 on port 1883.
|
||||
1732092122: New client connected from ::1:52474 as auto-A0484B86-3AEF-8173-A6F7-307FD8A0D37E (p2, c1, k60, u'fems').
|
||||
1732092122: Client auto-A0484B86-3AEF-8173-A6F7-307FD8A0D37E closed its connection.
|
||||
1732092152: New connection from ::1:40106 on port 1883.
|
||||
1732092152: New client connected from ::1:40106 as auto-A1AB7E82-3007-2C9A-066E-EA1CA41124A2 (p2, c1, k60, u'fems').
|
||||
1732092152: Client auto-A1AB7E82-3007-2C9A-066E-EA1CA41124A2 closed its connection.
|
||||
1732092182: New connection from ::1:37852 on port 1883.
|
||||
1732092182: New client connected from ::1:37852 as auto-801DBC80-D56F-1108-A740-1DDB7DD6CBB8 (p2, c1, k60, u'fems').
|
||||
1732092182: Client auto-801DBC80-D56F-1108-A740-1DDB7DD6CBB8 closed its connection.
|
||||
1732092212: New connection from ::1:37260 on port 1883.
|
||||
1732092212: New client connected from ::1:37260 as auto-B610FB6F-68F6-96A7-8A1A-B55E66011143 (p2, c1, k60, u'fems').
|
||||
1732092212: Client auto-B610FB6F-68F6-96A7-8A1A-B55E66011143 closed its connection.
|
||||
1732092242: New connection from ::1:58260 on port 1883.
|
||||
1732092242: New client connected from ::1:58260 as auto-DC2ADF85-4D3E-58D8-B29E-644040CA70AA (p2, c1, k60, u'fems').
|
||||
1732092242: Client auto-DC2ADF85-4D3E-58D8-B29E-644040CA70AA closed its connection.
|
||||
1732092272: New connection from ::1:38830 on port 1883.
|
||||
1732092272: New client connected from ::1:38830 as auto-7EF0F173-876E-546E-6588-86C2CF09F3C5 (p2, c1, k60, u'fems').
|
||||
1732092272: Client auto-7EF0F173-876E-546E-6588-86C2CF09F3C5 closed its connection.
|
||||
1732092302: New connection from ::1:38388 on port 1883.
|
||||
1732092302: New client connected from ::1:38388 as auto-0FEAA465-B372-FCD0-2841-12E21A4F595A (p2, c1, k60, u'fems').
|
||||
1732092302: Client auto-0FEAA465-B372-FCD0-2841-12E21A4F595A closed its connection.
|
||||
1732092332: New connection from ::1:58166 on port 1883.
|
||||
1732092332: New client connected from ::1:58166 as auto-CF4992FA-EFB8-360E-3479-408BD28723EA (p2, c1, k60, u'fems').
|
||||
1732092332: Client auto-CF4992FA-EFB8-360E-3479-408BD28723EA closed its connection.
|
||||
|
16
fems-timescaledb/Dockerfile
Normal file
16
fems-timescaledb/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
||||
# fems-timescaledb/Dockerfile
|
||||
FROM timescale/timescaledb:latest-pg16
|
||||
|
||||
# 설정 파일 복사
|
||||
COPY ./postgresql.conf /etc/postgresql/postgresql.conf
|
||||
COPY ./pg_hba.conf /etc/postgresql/pg_hba.conf
|
||||
COPY ./init-scripts/ /docker-entrypoint-initdb.d/
|
||||
|
||||
# 권한 설정
|
||||
RUN chown postgres:postgres /etc/postgresql/postgresql.conf && \
|
||||
chown postgres:postgres /etc/postgresql/pg_hba.conf && \
|
||||
chmod 644 /etc/postgresql/postgresql.conf && \
|
||||
chmod 644 /etc/postgresql/pg_hba.conf && \
|
||||
chmod -R 755 /docker-entrypoint-initdb.d/
|
||||
|
||||
USER postgres
|
Loading…
Reference in New Issue
Block a user