-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (55 loc) · 1.3 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3.9"
name: luna
services:
#luna-nginx:
# container_name: luna-nginx
# image: nginx:alpine
# ports:
# - "80:80"
# volumes:
# - ./nginx.conf:/etc/nginx/nginx.conf
luna-frontend:
container_name: luna-frontend
ports:
- "3000:3000"
volumes:
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
ORIGIN: http://localhost:3000
API_URL: http://luna-backend:3000
build:
context: frontend
dockerfile: Dockerfile
luna-backend:
container_name: luna-backend
#ports:
# - "3001:3000"
volumes:
- /srv/luna/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
DB_HOST: luna-postgres
DB_PORT: 5432
DB_USERNAME: luna
DB_PASSWORD: luna
DB_DATABASE: luna
depends_on:
- luna-postgres
build:
context: backend
dockerfile: Dockerfile
luna-postgres:
image: postgres:16-alpine
container_name: luna-postgres
ports:
- "5432:5432"
volumes:
- /srv/luna/postgres:/var/lib/postgresql/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
environment:
POSTGRES_USER: luna
POSTGRES_PASSWORD: luna
POSTGRES_DB: luna