diff options
| author | Melonai <einebeere@gmail.com> | 2021-01-12 18:04:30 +0100 |
|---|---|---|
| committer | Melonai <einebeere@gmail.com> | 2021-01-12 18:04:30 +0100 |
| commit | 6e8a1117ddef390453d6b695c301d7f4d219f947 (patch) | |
| tree | c960d95454ce332bdbaaca95c21593e67948c3f5 /docker-compose.yml | |
| parent | fa1189658a911db852ba974a7382509fb4ffbb7c (diff) | |
| download | shorest-6e8a1117ddef390453d6b695c301d7f4d219f947.tar.zst shorest-6e8a1117ddef390453d6b695c301d7f4d219f947.zip | |
Full cacheable Docker deployment with database
Diffstat (limited to 'docker-compose.yml')
| -rw-r--r-- | docker-compose.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..5195255 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,26 @@ +version: "3.8" +services: + server: + build: + context: . + container_name: shorest-server + ports: + - "127.0.0.1:${PORT}:${PORT}" + depends_on: + - postgres + links: + - postgres:postgres + environment: + - PORT + - POSTGRES_PASSWORD + postgres: + image: "postgres:alpine" + container_name: shorest-postgres + volumes: + - database:/var/lib/postgresql/data + environment: + - POSTGRES_DB=shorest + - POSTGRES_PASSWORD + +volumes: + database: |
