-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 989 Bytes
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 989 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
46
47
48
49
50
51
52
53
54
version: '3.8'
services:
postgres:
container_name: postgres
restart: always
build: ./postgress-db/
ports:
- ${POSTGRES_PORT}:${POSTGRES_PORT}
networks:
- custom-service
env_file:
- .env
command:
[
'postgres',
'-c',
'logging_collector=on',
'-c',
'log_statement=all',
'-c',
'log_directory=/logs',
]
volumes:
- ./pgdata:/var/lib/postgresql/data
- ./pglogs:/logs
app:
container_name: app
restart: always
build: ./
volumes:
- .:/app/src
ports:
- ${PORT}:${PORT}
depends_on:
- postgres
env_file:
- .env
environment:
PORT: ${PORT}
DATABASE_URL: "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}"
networks:
- custom-service
networks:
custom-service:
driver: bridge
volumes:
logs:
pgdata:
pglogs:
app:
node-modules: