-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.example.yaml
More file actions
64 lines (57 loc) · 1.13 KB
/
docker-compose.example.yaml
File metadata and controls
64 lines (57 loc) · 1.13 KB
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
version: "3.4"
services:
# Admin panel
admin:
build:
context: .
target: dev
dockerfile: build/admin/Dockerfile
ports:
- "3000:3000"
volumes:
- ./admin:/app
# Backend
back:
depends_on:
- redis
- db
env_file: backend/.env
user: "${UID:-1000}:${GID:-1000}"
build:
context: .
target: dev
dockerfile: ./build/backend/Dockerfile
environment:
OPCACHE_VALIDATE_TIMESTAMPS: "1"
volumes:
- ./backend:/app
- ./admin:/admin
# Web server
nginx:
build:
context: .
target: nginx
dockerfile: build/backend/Dockerfile
ports:
- "802:8080"
environment:
BACK_HOST: back:9000
volumes:
- ./backend/public:/app/public
- ./backend/storage/app/public:/app/storage/app/public
# Database
db:
image: postgres:16-alpine3.22
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
ports:
- "5433:5432"
volumes:
- pgdata:/var/lib/postgresql/data
# Redis
redis:
image: redis:6.2.1-alpine
volumes:
pgdata: