-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yml
54 lines (51 loc) · 1.04 KB
/
compose.yml
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.9"
services:
nginx:
build:
context: ./nginx
args:
DOMAIN: ${DOMAIN}
EMAIL: ${EMAIL}
ports:
- 80:80
- 443:443
volumes:
- /etc/letsencrypt:/etc/letsencrypt
depends_on:
- application
application:
build:
context: ./
args:
APP_ENV: $APP_ENV
container_name: rust-auth
ports:
- 5000:5000
volumes:
- ./migration:/opt/app/migration
- ./entity:/opt/app/entity
- ./src:/opt/app/rust-auth/src
depends_on:
db:
condition: service_healthy
db:
container_name: postgres-db
image: postgres:16.0-alpine
restart: always
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
PGUSER: ${POSTGRES_USER}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- '5432:5432'
volumes:
- db:/var/lib/postgresql/data
healthcheck:
test: "pg_isready -h db"
interval: 10s
timeout: 5s
retries: 5
volumes:
db:
driver: local