|
|
@ -8,7 +8,7 @@ services: |
|
|
|
- '80:80' |
|
|
|
- '80:80' |
|
|
|
- '443:443' |
|
|
|
- '443:443' |
|
|
|
volumes: |
|
|
|
volumes: |
|
|
|
- ./:/var/www/html |
|
|
|
- .:/var/www/html:ro,cached |
|
|
|
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/ |
|
|
|
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/ |
|
|
|
links: |
|
|
|
links: |
|
|
|
- app |
|
|
|
- app |
|
|
@ -16,27 +16,13 @@ services: |
|
|
|
- ospro |
|
|
|
- ospro |
|
|
|
depends_on: |
|
|
|
depends_on: |
|
|
|
- app |
|
|
|
- app |
|
|
|
command: [nginx-debug, '-g', 'daemon off;'] |
|
|
|
|
|
|
|
app: |
|
|
|
app: |
|
|
|
build: |
|
|
|
build: |
|
|
|
context: . |
|
|
|
context: . |
|
|
|
dockerfile: Dockerfile |
|
|
|
dockerfile: Dockerfile |
|
|
|
extra_hosts: |
|
|
|
|
|
|
|
- 'host.docker.internal:host-gateway' |
|
|
|
|
|
|
|
working_dir: /var/www/html |
|
|
|
|
|
|
|
volumes: |
|
|
|
|
|
|
|
- .:/var/www/html |
|
|
|
|
|
|
|
restart: unless-stopped |
|
|
|
restart: unless-stopped |
|
|
|
ports: |
|
|
|
|
|
|
|
- "9000:9000" |
|
|
|
|
|
|
|
networks: |
|
|
|
networks: |
|
|
|
- ospro |
|
|
|
- ospro |
|
|
|
healthcheck: |
|
|
|
|
|
|
|
test: curl --fail http://localhost || exit 1 |
|
|
|
|
|
|
|
interval: 60s |
|
|
|
|
|
|
|
retries: 5 |
|
|
|
|
|
|
|
start_period: 20s |
|
|
|
|
|
|
|
timeout: 10s |
|
|
|
|
|
|
|
db: |
|
|
|
db: |
|
|
|
image: postgres:14.4-alpine |
|
|
|
image: postgres:14.4-alpine |
|
|
|
restart: always |
|
|
|
restart: always |
|
|
|