-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (40 loc) · 896 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
version: '3'
services:
backend:
build:
context: ./backend
entrypoint: dockerize -template ./.docker/.env:.env -wait tcp://postgresql:5432 -timeout 40s ./.docker/entrypoint.sh
tty: true
restart: always
environment:
DB_HOST: "postgresql"
DB_PORT: "5432"
DB_USERNAME: "admin"
DB_PASSWORD: "admin"
DB_DATABASE: "namegator"
ports:
- "4000:4000"
volumes:
- ./backend:/usr/src/app
networks:
- app-network
depends_on:
- postgresql
postgresql:
image: postgres
ports:
- "5432:5432"
environment:
POSTGRES_DB: "namegator"
POSTGRES_PASSWORD: "admin"
POSTGRES_USER: "admin"
networks:
- app-network
volumes:
- ./.docker/postgresql:/docker-entrypoint-initdb.d
volumes:
postgresql-volume:
driver: local
networks:
app-network:
driver: bridge