docker compose up on the command lineStarter compose.yml:
services:
db:
image: trailguide/trailguide-db-prod
container_name: trailguide-db-prod
restart: always
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U tgadmin -d tgdb']
interval: 5s
timeout: 5s
retries: 5
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=tgadmin
- POSTGRES_DB=tgdb
volumes:
- trailguide-db:/var/lib/postgresql/data
ports:
- 5432:5432
server:
image: trailguide/trailguide-prod
container_name: trailguide-server
environment:
- POSTGRES_PASSWORD=secret
- POSTGRES_USER=tgadmin
- POSTGRES_DB=tgdb
- NODE_ENV=production
ports:
- 8080:8080
depends_on:
db:
condition: service_healthy
volumes:
trailguide-db:
Content type
Image
Digest
sha256:82cdfd5a7…
Size
53.4 MB
Last updated
almost 2 years ago
docker pull trailguide/trailguide-prod