-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
57 lines (56 loc) · 1.15 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
## STATBLE VERSION
# version: "3.8"
# services:
# postgres:
# build: ./db
# env_file:
# - path: ./.env
# required: false
# volumes:
# - ./db:/docker-entrypoint-initdb.d
# ports:
# - "35432:5432"
# app:
# restart: on-failure
# build: .
# depends_on:
# - postgres
# env_file:
# - path: ./.env
# required: false
# ports:
# - "3000:3000"
# command: npm run dev
# volumes:
# - .:/app/
# - /app/nodde_modules
version: "3"
services:
postgres:
image: "postgres:latest"
environment:
- POSTGRES_USER=user123
- POSTGRES_DB=db123
- POSTGRES_PASSWORD=password123
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
nginx:
depends_on:
- api
restart: always
build:
dockerfile: Dockerfile.dev
context: ./nginx
ports:
- "3050:80"
api:
image: monkeichow/express-psql-api
volumes:
- /app/node_modules
- ./server:/app
environment:
- POSTGRES_USER=user123
- POSTGRES_DB=db123
- POSTGRES_PASSWORD=password123
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432