diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-12 02:52:22 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-10-12 02:53:52 +0300 |
commit | d05ea66f4bbcf0cc5c8908f3435c68de1b070fa1 (patch) | |
tree | 7c7a769206646f2b81a0eda0680f0be5033a4197 /contrib/prod/docker-compose.yml |
Начальная версияv0.0.1
Diffstat (limited to 'contrib/prod/docker-compose.yml')
-rw-r--r-- | contrib/prod/docker-compose.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/prod/docker-compose.yml b/contrib/prod/docker-compose.yml new file mode 100644 index 0000000..83e0dd4 --- /dev/null +++ b/contrib/prod/docker-compose.yml @@ -0,0 +1,37 @@ +version: '3.3' + +services: + db: + image: postgres + shm_size: 128mb + env_file: .env + volumes: + - data:/var/lib/postgresql/data + healthcheck: + test: [ "CMD-SHELL", "pg_isready -U app -d app" ] + interval: 30s + timeout: 30s + retries: 5 + restart: unless-stopped + app: + image: gitrepo.ru/neonxp/app:latest + volumes: + - config:/config + command: serve -config=/config/prod.yaml + depends_on: + db: + condition: service_healthy + ports: + - 8093:8000 + restart: unless-stopped + migration: + image: gitrepo.ru/neonxp/app:latest + volumes: + - config:/config + command: db migrate -config=/config/prod.yaml + depends_on: + db: + condition: service_healthy +volumes: + data: + config: |