-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
50 lines (47 loc) · 889 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
46
47
48
49
50
version: '3.3'
services:
api:
build: ./api/app
command: npm start
restart: unless-stopped
networks:
- server-net
ports:
- '3000:3000'
environment:
- PORT=3000
- DB_USER=postgres
- DB_PASSWORD=900800
- DB_NAME=mytest
- DB_HOST=postgres
# - DB_HOST=172.20.0.2
depends_on:
- db
db:
image: postgres:14.1-alpine3.15
container_name: postgres
networks:
- server-net
environment:
POSTGRES_HOST: localhost
POSTGRES_USER: vitaly
POSTGRES_PASSWORD: 900800
POSTGRES_DB: mytest
# volumes:
# - database:/var/lib/postgresql
ports:
- '5433:5432'
adminer:
image: adminer
restart: always
networks:
- server-net
depends_on:
- db
ports:
- '8080:8080'
networks:
server-net:
driver: bridge
#volumes:
# database: