platform/docker
thomashii@dukefirehawk.com 793a8ac115 Updated DateTime to non UTC
2022-07-16 10:44:49 +08:00
..
docker-compose-mariadb.yml Updated DateTime to non UTC 2022-07-16 10:44:49 +08:00
docker-compose-mysql.yml Updated DateTime to non UTC 2022-07-16 10:44:49 +08:00
docker-compose-pg.yml Updated DateTime to non UTC 2022-07-16 10:44:49 +08:00
docker-compose-redis.yml Updated DateTime to non UTC 2022-07-16 10:44:49 +08:00
README.md Added database connection retry 2022-07-11 14:15:02 +08:00

Working with Docker

Postgresql

Starting the container

```bash
docker-compose -f docker-compose-pg.yml up
```

Running psql

```bash
docker exec -it <container id> /bin/bash
psql --username postgres
```

Create database, user and access

```psql
postgres=# create database orm_test;
postgres=# create user test with encrypted password 'test123';
postgres=# grant all privileges on database orm_test to test;
```

MariaDB

MySQL

Redis