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.
57 lines
1.3 KiB
57 lines
1.3 KiB
version: '3.8' |
|
services: |
|
nginx: |
|
image: nginx:alpine |
|
restart: unless-stopped |
|
tty: true |
|
ports: |
|
- '80:80' |
|
- '443:443' |
|
volumes: |
|
- ./:/var/www/html |
|
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/ |
|
links: |
|
- app |
|
networks: |
|
- ospro |
|
depends_on: |
|
- app |
|
command: [nginx-debug, '-g', 'daemon off;'] |
|
app: |
|
build: |
|
context: . |
|
dockerfile: Dockerfile |
|
extra_hosts: |
|
- 'host.docker.internal:host-gateway' |
|
working_dir: /var/www/html |
|
volumes: |
|
- .:/var/www/html |
|
restart: unless-stopped |
|
ports: |
|
- "9000:9000" |
|
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' |
|
networks: |
|
- ospro |
|
volumes: |
|
- db:/var/lib/postgresql/data |
|
networks: |
|
ospro: |
|
driver: bridge |
|
volumes: |
|
db: |
|
driver: local
|
|
|