-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (39 loc) · 969 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
40 lines (39 loc) · 969 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
services:
postgres:
image: postgres:latest
container_name: postgres_container
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1111
POSTGRES_DB: ChatDB
TZ: Europe/Moscow
ports:
- "8080:5432"
networks:
- app-networks
volumes:
- postgres_data:/var/lib/postgresql/data
server:
build:
context: ./server
dockerfile: Dockerfile
container_name: server_container
environment:
DB_USER: postgres
DB_PASSWORD: 1111
DB_NAME: ChatDB
DB_SSLMODE: disable
PROTOCOL: tcp
DB_PORT: 5432
DB_HOST: postgres
LPORT: 80
ports:
- "80:80"
networks:
- app-networks
depends_on:
- postgres
networks:
app-networks:
volumes:
postgres_data: