services: 100diasdecodigo-db: build: dockerfile: docker/postgres.Dockerfile context: . image: postgres.local:18 container_name: 100diasdecodigo-db restart: no hostname: dev environment: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: dev_100diasdecodigo TZ: Etc/UTC PGTZ: Etc/UTC ports: - '5432:5432' volumes: - 100diasdecodigo-db:/var/lib/postgresql networks: - dev-100dias healthcheck: test: ['CMD-SHELL', 'pg_isready --quiet --username=postgres --dbname=postgres || exit 1'] interval: 10s retries: 5 timeout: 10s start_period: 15s 100diasdecodigo-redis: build: dockerfile: docker/redis.Dockerfile context: . image: redis.local:8 container_name: 100diasdecodigo-redis restart: no hostname: dev ports: - '6379:6379' networks: - dev-100dias healthcheck: test: ['CMD-SHELL', 'redis-cli --raw incr ping || exit 1'] interval: 10s retries: 5 timeout: 10s start_period: 15s 100diasdecodigo-mailpit: build: dockerfile: docker/mailpit.Dockerfile context: . image: mailpit.local:1 container_name: 100diasdecodigo-mailpit restart: no hostname: dev ports: - '1025:1025' - '8025:8025' networks: - dev-100dias healthcheck: test: ['CMD', '/mailpit', 'readyz'] interval: 10s retries: 5 timeout: 10s start_period: 10s volumes: 100diasdecodigo-db: name: 100diasdecodigo-db networks: dev-100dias: name: dev-100dias driver: bridge driver_opts: com.docker.network.bridge.name: dev-100dias com.docker.network.bridge.host_binding_ipv4: '127.0.0.1'