-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
43 lines (40 loc) · 969 Bytes
/
docker-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
version: '3.8'
services:
app:
image: clivern/lynx:0.12.7
environment:
APP_NAME: Lynx
APP_PORT: 4000
APP_SECRET: koPmu7TJCwD8mttV9vgWUeU7iuu/zTPOR3sX4UalM9KkYEVGPfyi0PeTVzu1TT8C
APP_HOST: localhost
APP_HTTP_SCHEMA: http
DB_USERNAME: root
DB_PASSWORD: D1q9f0C2&PEW
DB_HOSTNAME: db
DB_DATABASE: lynx
DB_PORT: 5432
DB_SSL: null
DB_CA_CERTFILE_PATH: null
MIX_ENV: prod
command: sh -c "/app/bin/migrate && /app/bin/server"
restart: unless-stopped
ports:
- '4000:4000'
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:4000/_health"]
interval: 30s
retries: 3
depends_on:
- db
db:
image: postgres:16.6
environment:
POSTGRES_DB: lynx
POSTGRES_USER: root
POSTGRES_PASSWORD: D1q9f0C2&PEW
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data
volumes:
db:
driver: local