-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
82 lines (78 loc) · 1.58 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.4'
services:
frontend-public:
build:
context: ./frontend/public
target: dev
env_file:
- .env
- ./frontend/public/.env
volumes:
- ./frontend/public:/app
ports:
- ${FRONTEND_PUBLIC_PORT:-3121}:${FRONTEND_PUBLIC_PORT:-3121} # vite websocket debug port
networks:
- appnet
depends_on:
- backend
frontend-admin:
build:
context: ./frontend/admin
target: dev
working_dir: /app
env_file:
- .env
- ./frontend/admin/.env
volumes:
- ./frontend/admin:/app
ports:
- ${FRONTEND_ADMIN_PORT:-3122}:${FRONTEND_ADMIN_PORT:-3122} # vite websocket debug port
networks:
- appnet
depends_on:
- backend
nginx:
image: nginx:1.21
env_file:
- .env
volumes:
- ./frontend/docker/nginx.dev.conf:/etc/nginx/templates/rashinme.conf.template:ro
- ./:/app
ports:
- "80:80"
- "443:443"
networks:
- appnet
depends_on:
- backend
backend:
build:
context: ./
target: dev
env_file:
- .env
volumes:
- ./:/app
links:
- db
networks:
- appnet
depends_on:
- db
db:
image: postgres:${DB_SERVER_VERSION:-15}-alpine
environment:
- POSTGRES_PASSWORD=${DB_PASSWORD:-!PasswordByDefault!}
- POSTGRES_USER=${DB_USER:-app}
- POSTGRES_DB=${DB_NAME:-db_name}
ports:
- ${DB_PUBLIC_PORT:-5432}:5432
volumes:
- pgdata:/var/lib/postgresql/data
networks:
- appnet
networks:
appnet:
driver: bridge
volumes:
pgdata: