-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (41 loc) · 941 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
45 lines (41 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
volumes:
postgres_data:
networks:
herbario_network:
driver: bridge
services:
postgres:
image: docker.io/postgis/postgis:18-3.6
container_name: herbario_postgresql
environment:
POSTGRES_DB: $PG_DATABASE
POSTGRES_USER: $PG_USERNAME
POSTGRES_PASSWORD: $PG_PASSWORD
volumes:
- postgres_data:/var/lib/postgresql
ports:
- ${PG_PORT:-5432}:5432
shm_size: 128mb
networks:
- herbario_network
api:
build:
context: .
dockerfile: Dockerfile
platform: linux/amd64
image: hcf-api:local
container_name: herbario_api
env_file: .env
ports:
- $PORT:$PORT
networks:
- herbario_network
nginx:
image: nginx:1.17-alpine
container_name: herbario_nginx
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/conf.d:/etc/nginx/conf.d
- ./uploads:/usr/share/nginx/html
ports:
- 8080:80