refactor(docker-compose): incorporate standalone build
This commit is contained in:
@@ -3,7 +3,8 @@ services:
|
||||
main:
|
||||
build:
|
||||
context: ./docker
|
||||
image: automatischio/automatisch
|
||||
dockerfile: Dockerfile.compose
|
||||
entrypoint: /compose-entrypoint.sh
|
||||
ports:
|
||||
- '3000:3000'
|
||||
depends_on:
|
||||
@@ -28,7 +29,8 @@ services:
|
||||
worker:
|
||||
build:
|
||||
context: ./docker
|
||||
image: automatischio/automatisch
|
||||
dockerfile: Dockerfile.compose
|
||||
entrypoint: /compose-entrypoint.sh
|
||||
depends_on:
|
||||
- main
|
||||
environment:
|
||||
@@ -52,7 +54,7 @@ services:
|
||||
volumes:
|
||||
- postgres_data:/var/lib/postgresql/data
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
|
||||
test: ['CMD-SHELL', 'pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}']
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
Reference in New Issue
Block a user