-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
43 lines (43 loc) · 1003 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
version: "3"
services:
# app:
# image: awesome/backend
# restart: always
# build:
# context: .
# dockerfile: ./nestjs.dockerfile
# ports:
# - "3000:3000"
# stdin_open: true
# tty: true
# depends_on:
# - db
# networks:
# - default
# - our_net
# links:
# - "db"
# network_mode: "host"
db:
image: postgres:latest
container_name: postgres
restart: always
# expose:
# - 5432
ports:
- "5432:5432"
environment:
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
stdin_open: true
tty: true
networks:
- default
- our_net
shm_size: "1g"
# network_mode: "host"
# volumes:
# - D:/postgresql/data/:/var/lib/postgresql/data
networks:
our_net:
driver: bridge