diff options
| author | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-21 00:11:39 -0300 |
|---|---|---|
| committer | Matheus <matheus.guedes.mg.m@gmail.com> | 2025-10-21 00:11:39 -0300 |
| commit | ba5f30be9f69d18cbb3ffe2d00ba9cf287b77f43 (patch) | |
| tree | c12b2ee5bea9387acc4aae1ddb4d20259d70ac46 /compose.yaml | |
| parent | 96961e5dd15ec76e69c64ab7f3c31f6f22346e8c (diff) | |
fix:criação automática de tabelas
Diffstat (limited to 'compose.yaml')
| -rw-r--r-- | compose.yaml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/compose.yaml b/compose.yaml index 21f3cea..c5102e4 100644 --- a/compose.yaml +++ b/compose.yaml @@ -29,21 +29,18 @@ services: - mosquitto depends_on: - mosquitto - - postgres: image: postgres:13 container_name: postgres - ports: - - 5432:5432 + networks: + - database environment: POSTGRES_PASSWORD: public POSTGRES_USER: root POSTGRES_DB: control_station volumes: - - $PWD/database/create-table.sql:/docker-entrypoint-initdb.d/init.sql - - + - ${PWD}/database/init_scripts:/docker-entrypoint-initdb.d + - db_data:/var/lib/postgresql/data pgadmin: image: dpage/pgadmin4 container_name: pgadmin @@ -52,7 +49,13 @@ services: - PGADMIN_DEFAULT_PASSWORD=admin ports: - "5050:80" + networks: + - database depends_on: - postgres networks: mosquitto: + database: + +volumes: + db_data: |
