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.
25 lines
580 B
25 lines
580 B
services: |
|
|
|
api: |
|
|
|
build: |
|
context: . |
|
dockerfile: Dockerfile |
|
volumes: |
|
- /etc/localtime:/etc/localtime:ro |
|
depends_on: |
|
- pgsql |
|
expose: # Usar ports en vez de expose en caso de necesitar acceder desde el host |
|
- 80 |
|
- 443 |
|
restart: unless-stopped |
|
|
|
pgsql: # Omitir en caso de conectar a base de datos externa |
|
image: postgres:11.6 |
|
environment: |
|
- TZ=${TZ} |
|
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD} |
|
- POSTGRES_DB=${POSTGRES_DB} |
|
- PGDATA=/var/lib/postgresql/data/pgdata |
|
restart: unless-stopped |
|
|
|
|