forked from Clivern/Lynx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-nginx.yml
49 lines (45 loc) · 1.06 KB
/
docker-compose-nginx.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
version: '3.8'
services:
app:
image: clivern/lynx:0.11.9
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
depends_on:
- db
db:
image: postgres:16.3
environment:
POSTGRES_DB: lynx
POSTGRES_USER: root
POSTGRES_PASSWORD: D1q9f0C2&PEW
restart: unless-stopped
volumes:
- db:/var/lib/postgresql/data
nginx:
image: nginx:1.25.4-alpine3.18
ports:
- '80:80'
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost/_ready"]
interval: 30s
retries: 3
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
volumes:
db:
driver: local