forked from ChicoState/PantryNode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
45 lines (43 loc) · 980 Bytes
/
docker-compose.yml
File metadata and controls
45 lines (43 loc) · 980 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
version: "3.9"
services:
database:
image: postgres:latest
volumes:
- ./postgres-data:/var/lib/postgresql/data
- ./sql/create_tables.sql:/docker-entrypoint-initdb.d/create_tables.sql
- ./sql/dummy_data.sql:/docker-entrypoint-initdb.d/dummy_data.sql
networks:
- local
ports:
- '5432:${DB_PORT}'
restart: always
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_DB=${DB_NAME}
- PGDATA=/var/lib/pg_data
db_admin:
image: dpage/pgadmin4
ports:
- "82:80"
restart: always
networks:
- local
environment:
- PGADMIN_DEFAULT_EMAIL=$PGADMIN_EMAIL
- PGADMIN_DEFAULT_PASSWORD=$PGADMIN_PASSWORD
node:
build:
context: .
dockerfile: Dockerfile
target: node
container_name: node
platform: linux/amd64
depends_on:
- database
restart: always
networks:
- local
ports:
- 3000:3000
networks:
local: