-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (45 loc) · 877 Bytes
/
Copy pathrust.yml
File metadata and controls
52 lines (45 loc) · 877 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
version: '3'
services:
main:
image: ${IMAGE_NAME}
build:
dockerfile: Dockerfile
context: .
ports:
- "8080:8080"
- "4444:4444"
depends_on:
- db
- mfa
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- DATABASE_URL=localhost:5432/database
db:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- ./db:/var/lib/postgresql/data
- ./postgresql.conf:/etc/postgresql/postgresql.conf
mfa:
image: otp-gen
build:
- ./
ports:
- "4444:4444"
otp-gen:
image: otp-gen
volumes:
- /usr/bin:
variables:
IMAGE_NAME: ${IMAGE_NAME}
DATABASE_URL: db://localhost:5432/database
dependencies:
- postgres
- otp-gen
build:
stage: build
script:
- cargo build --release