-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (40 loc) · 1008 Bytes
/
docker-compose.yml
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
version: '3.8'
# Services
services:
# PostgreSQL
postgres:
image: postgres:14.0
command: postgres -c logging_collector=on -c log_destination=stderr -c log_directory=/var/log/postgresql
environment:
POSTGRES_PASSWORD: admin1
ports:
- 5432:5432
hostname: postgres
volumes:
- ./logs/postgresql:/var/log/postgresql
- food-pantry-data:/var/lib/postgresql/data
# pgadmin:
# container_name: pgadmin4
# image: dpage/pgadmin4
# restart: unless-stopped
# ports:
# - "80:80"
# environment:
# # - POSTGRES_HOST_AUTH_METHOD=trust
# - PGADMIN_DEFAULT_PASSWORD=admin
# hostname: pgadmin
# volumes:
# - ./pgAdmin:/var/lib/pgadmin/
app:
image: node:17
command: sh -c "npm install && npm run start"
working_dir: /server
ports:
- 9000:9000
volumes:
- ./server:/server
depends_on:
- postgres
volumes:
food-pantry-data: