-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose.yaml
53 lines (52 loc) · 1.16 KB
/
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
name: postgresql
services:
dbit:
# # psql -U postgres -p 5430
image: postgres:12.1-alpine
container_name: postgresql-integration-test
restart: always
ports:
- 5430:5432
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: integration_test
volumes:
- ./data:/var/lib/postgresql/data-it
db:
# # psql -U postgres -p 5431
image: postgres:12.1-alpine
container_name: postgresql
restart: always
ports:
- 5431:5432
environment:
PGDATA: mypgdata
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- ./data:/var/lib/postgresql/data:Z
networks:
- network
backend:
build:
context: .
dockerfile: apps/rust/Dockerfile
# command: ['sleep', 'infinity']
command: ['/backend']
ports:
- 8090:8080
environment:
PORT: 8080
JWT_SALT: random
SALT: random
FE_URL: http://localhost:5173
DATABASE_URL: postgres://postgres:postgres@db:5431/postgres
networks:
- network
depends_on:
- db
networks:
network:
driver: bridge