-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
61 lines (57 loc) · 1.33 KB
/
docker-compose.yaml
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
55
56
57
58
59
60
61
version: "3"
services:
app:
build:
context: .
dockerfile: Dockerfile
restart: always
ports:
- "2024:2024"
environment:
HOST: app:2024
NODE_ENV: "development"
PORT: 2024
API_VERSION: v
JWT_SECRET: Vl9fTsn0XUC4SSudWkVp1zwvG8kKPUui
EXPIRES_IN: 7d
TOKEN_EXPIRATION: 2d
DATABASE_URL: postgres://POSTGRES_USER:POSTGRES_PASSWORD@POSTGRES_HOST:5432/POSTGRES_DB
depends_on:
- postgres_db
volumes:
- .:/usr/src/app
networks:
- wedding_services_network
postgres_db:
image: postgres
restart: on-failure
environment:
- POSTGRES_DB=POSTGRES_DB
- POSTGRES_USER=POSTGRES_USER
- POSTGRES_PASSWORD=POSTGRES_PASSWORD
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- postgres_data:/var/lib/postgresql/data/
networks:
- wedding_services_network
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_container
restart: on-failure
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
ports:
- "5050:80"
depends_on:
- postgres_db
volumes:
- pgadmin_data:/var/lib/pgadmin
networks:
- wedding_services_network
volumes:
postgres_data:
pgadmin_data:
networks:
wedding_services_network:
driver: bridge