You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
842 B
37 lines
842 B
2 years ago
|
version: '3.8'
|
||
|
services:
|
||
|
lumen:
|
||
|
build:
|
||
|
context: .
|
||
|
dockerfile: Dockerfile
|
||
|
extra_hosts:
|
||
|
- 'host.docker.internal:host-gateway'
|
||
|
ports:
|
||
|
- '${APP_PORT:-80}:80'
|
||
|
volumes:
|
||
|
- .:/var/www
|
||
|
networks:
|
||
|
- ospro
|
||
|
healthcheck:
|
||
|
test: curl --fail http://localhost || exit 1
|
||
|
interval: 60s
|
||
|
retries: 5
|
||
|
start_period: 20s
|
||
|
timeout: 10s
|
||
|
db:
|
||
|
image: postgres:14.4-alpine
|
||
|
restart: always
|
||
|
environment:
|
||
|
- POSTGRES_USER=postgres
|
||
|
- POSTGRES_PASSWORD=postgres
|
||
|
ports:
|
||
|
- '5432:5432'
|
||
|
volumes:
|
||
|
- db:/var/lib/postgresql/data
|
||
|
networks:
|
||
|
ospro:
|
||
|
driver: bridge
|
||
|
volumes:
|
||
|
db:
|
||
|
driver: local
|